Skip to content

xap3y/TemplateBukkitGradle

Repository files navigation

Bukkit project template

Installation:

  1. Clone this repository
git clone https://github.com/xap3y/TemplateBukkitGradle.git
cd TemplateBukkitGradle
  1. Modify gradle.properties
  2. Refactor the project
    2.1 change the group, baseCoordinates and version in the gradle.properties file.
    2.2 change the main and name in the src/main/resources/plugin.yml file.

Fast installation (Linux only):

This will create the project in the active directory

curl -fsSL https://static.xap3y.space/install.sh | bash

List of features implemented in this project:

Instruction for permanent installation:
  1. OPTIONALLY Install gum (For better prompts in terminal)
  2. Create /usr/bin/newplugin
  3. Copy content of newplugin.sh into newly created /usr/bin/newplugin
  4. Make it executable: chmod +x /usr/bin/newplugin
  5. Now you can create a new plugin project by running newplugin in 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.

Building:

./gradlew build - automatically shades all dependencies and creates a single jar file in the build/libs directory.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks