A Mineccraft Bukkit Plugin Template
- This template is tailored of usage in VSCode. You should be prompted to install some VSCode extensions when you open the repo in VSCode to facilitate Java development. This template will still work in other IDEs and you can delete the
.vscode
folder if you don't plan to use VSCode. - Install Java and Maven if you don't already have them installed. Google for tutorials on how to do this if you're not sure how.
pom.xml
- If not PCN, update
<groupId>
. Exme.parsonswy
- Update
<artifactId>
. - If using a different versioning notiation, update
<version>
- Update
<description>
- If not PCN, update
- Project Structure
- If not PCN update package structure to match your
<groudId>
Exme\parsonswy\templateus
- Change the
net.peacefulcraft.templateus
package to[whatever you just set the package path to].[name of your plugin]
Exme.parsonswy.guishop
- Rename
Templateus.java
to match the name of your plugin. ExGuiShop.java
- Change
main\resources\plugin.yml
main: net.peacefulcraft.templateus.Templateus
to match the path you just set above. Exme.parsonswy.guishop.GuiShop
. Note that the.java
is left off here. - Moving / renaming in the above setups may result in compile errors in the
import
statements. Update any broken package paths accordingly. - Either remove of re-purpose the example command and permission in
plugin.yml
. See the Wiki article linked inplugin.yml
for more details on what goes intoplugin.yml
.
-
Open your OS' command terminal and navigate to this project's folder ( folder with
src
,pom.xml
,README.md
, etc ). -
Type
mvn package
-
Once the command is complete, there will be a jar file in
target\[<artifactId>]-[version].jar
For questions, comments, or suggestions on this repo or Bukkit plugin development in general: