Skip to content

Comments

[WIP] Add docs for contributing to Nucleus development#14

Open
DawnTheFawn1 wants to merge 3 commits intoNucleusPowered:masterfrom
DawnTheFawn1:master
Open

[WIP] Add docs for contributing to Nucleus development#14
DawnTheFawn1 wants to merge 3 commits intoNucleusPowered:masterfrom
DawnTheFawn1:master

Conversation

@DawnTheFawn1
Copy link

This PR is to help future developers in contributing to Nucleus. Right now I'd like feedback on formatting and whether or not it's detailed enough. Something that seems very obvious to me may not be to someone else. This is a WIP and I'm going to be adding more pages in the coming days.

A simple module is a module which does not have any configuration whatsoever. You can add commands, listeners, and tasks to a module. In
order to begin creating a module you must first locate the src/main/java/io/github/nucleuspowered/nucleus/modules package. Next a new
package must be created which will contain the new module. To finish with creating a very basic module all that needs doing is creating a
new class in the package and adding the @ModuleData annotation including a String id and name for the module.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any annotations or paths should be enclosed in backticks, so @ModuleData


## Explanation
A simple module is a module which does not have any configuration whatsoever. You can add commands, listeners, and tasks to a module. In
order to begin creating a module you must first locate the src/main/java/io/github/nucleuspowered/nucleus/modules package. Next a new
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The package is io.github.nucleuspowered.nucleus.modules. The path in the repo is this.

## Explanation
A simple module is a module which does not have any configuration whatsoever. You can add commands, listeners, and tasks to a module. In
order to begin creating a module you must first locate the src/main/java/io/github/nucleuspowered/nucleus/modules package. Next a new
package must be created which will contain the new module. To finish with creating a very basic module all that needs doing is creating a
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The package should be named the same, or similar, to the proposed module ID.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, might be worth mentioning that the plugin variable is automatically available for use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants