- You are familiar with IntelliJ
- You are familiar with Java
- You are familiar with Spigot
Install Spigot: https://www.spigotmc.org/wiki/spigot-installation/ A
curl https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar --output BuildTools.jar export MAVEN_OPTS="-Xmx2G" java -Xmx2G -jar BuildTools.jar echo "eula=true" > eula.txt set "gamemode" in "server.properties" to "1" to set world to creative mode
git clone https://github.com/jaguth/spigotpluggin.helloworld.git cd spigotpluggin.helloworld/ ./gradlew build cd .. mkdir plugins cp spigotpluggin.helloworld/build/libs/spigotpluggin.helloworld-1.0.jar plugins/spigotpluggin.helloworld-1.0.jar
java -Xms512M -Xmx1G -XX:+UseConcMarkSweepGC -jar spigot-1.13.2.jar
Spigot v1.13.2 Spigot API: 1.13.2-R0.1-SNAPSHOT IntelliJ Community 2018.3 Gradle v4.10
- Run: git clone https://github.com/jaguth/spigotpluggin.helloworld
- Open in IntelliJ Community. Verify gradle has downloaded all dependencies and project builds
- Run the gradle task "jar". the jar file will be built to build/libs
- Copy build/libs/blah.SNAP to your Spigot plugin directory
- Start Spigot: java -Xms1G -Xmx1G -XX:+UseConcMarkSweepGC -jar spigot-1.13.2.jar
- Watch for the text "[HelloWorld] Enabling HelloWorld v1.0" to appear in the console output
- Open a client and connect to your Spigot server
- Once the world loads, type "/echo hi there". The server will respond with your user name, the command name, and the supplied arguments.