forked from wensheng / JuicyRaspberryPie
Please visit https://mc-remote.com for the latest information.
This project uses Gradle Java Toolchains. The Minecraft/Paper version, plugin
version, and Java version are defined in gradle.properties.
mcVersion=1.21.11
mcJavaVersion=21
paperApiVersion=1.21.11-R0.1-SNAPSHOT
pluginApiVersion=1.21.11
pluginVersion=2000.0.0Build with the configured Java version:
./gradlew buildTemporarily build with Java 25:
./gradlew build -PmcJavaVersion=25 -PpaperApiVersion=26.1.2.build.+For Paper 26.1 and later, paperApiVersion uses Paper's artifact version
format, such as 26.1.2.build.+, while pluginApiVersion should remain the
server API version, such as 26.1.2.
Local server tasks also use the configured Gradle toolchain:
./gradlew runServer
./gradlew stopServer
./gradlew restartServerTo deploy the plugin to the FTP server, you have to create the file named "ftp_settings.mk" with the content like below:
# server1
ftp1.FTP_USER := username
ftp1.FTP_PASS := password
ftp1.FTP_HOST := ftp.example.com:21
ftp1.FTP_PATH := /minecraft/plugins/
# server2
ftp2.FTP_USER := username
ftp2.FTP_PASS := password
ftp2.FTP_HOST := ftp.example.com:21
ftp2.FTP_PATH := /minecraft/plugins/
This file is referenced from settings.gradle.kts and is used in gradle task to deploy built plugin files. Note, however, that it should not be committed to the repository because it contains sensitive information such as FTP credentials.
You can verify that it has already been set to .gitignore.