- Clone this repository
git clone https://github.com/xap3y/TemplateBukkitGradle.git
cd TemplateBukkitGradle- Modify gradle.properties
- Refactor the project
2.1 change thegroup,baseCoordinatesandversionin thegradle.propertiesfile.
2.2 change themainandnamein thesrc/main/resources/plugin.ymlfile.
This will create the project in the active directory
curl -fsSL https://static.xap3y.space/install.sh | bashList of features implemented in this project:
Instruction for permanent installation:
- OPTIONALLY Install gum (For better prompts in terminal)
- Create
/usr/bin/newplugin - Copy content of
newplugin.shinto newly created/usr/bin/newplugin - Make it executable:
chmod +x /usr/bin/newplugin - Now you can create a new plugin project by running
newpluginin terminal
It will ask you for:
- Project name
- Destination folder
After that, script will automatically rename project packages, refactor java classes and main class in plugin.yml.
Warning
Not all of the features above are enabled by default!
To enable them, you need to uncomment the corresponding lines in the build.gradle file.
./gradlew build - automatically shades all dependencies and creates a single jar file in the build/libs directory.