-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Add docs for contributing to Nucleus development #14
base: master
Are you sure you want to change the base?
Conversation
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. |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
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.