You must have Java 17 and Java 8 installed on your system to run various scripts and compilation steps.
- Install Java 17 (Amazon Corretto)
- Install Java 8. I recommend downloading the LTS JDK 8 from AdoptOpenJDK.
- Run
python3 scripts/download_dev_server.pyto download the development server. - Run
python3 scripts/dev_server.pyto compile the plugin and run the development server. - You are ready to start developing! Simply rerun the development server script to refresh any changes.
You must run the buildtools.py script to build the Spigot and CraftBukkit Maven repositories. Ensure you are using
Java 8 or Java 7 to run the script.
python scripts/buildtools.pyBy default, the script will use java from the JAVA_HOME environment variable to locate the Java executable. If you
want to override the Java executable, set the BUILD_TOOLS_JAVA_PATH environment variable to the full path of the Java
executable. For example:
# Powershell
$env:BUILD_TOOLS_JAVA_PATH = "C:\Program Files\Java\jdk1.8.0_202\bin\java.exe"; python scripts/buildtools.py
# CMD
set "BUILD_TOOLS_JAVA_PATH=C:\Program Files\Java\jdk1.8.0_202\bin\java.exe" && python scripts\buildtools.py- Ensure you have
dockeranddocker-composeinstalled on your system. - Run
docker-compose upin thedynamodbdirectory to start the local DynamoDB instance. - Run the
reset_schema.pyscript inscripts/db/reset_schema.py. This will delete any pre-existing data and recreate a fresh environment.