-
-
Couldn't load subscription status.
- Fork 205
Building PacketEvents
Abhigya edited this page Nov 4, 2024
·
10 revisions
Building PacketEvents requires the Gradle JVM to use Java 21 due to our unit tests.
Regardless of the Gradle JVM being Java 21, PacketEvents is still written with the Java 8 SDK and will produce a JAR for Java 8.
- Git
- Gradle
- Java 21+ (for Gradle JVM)
Clone the packetevents repository using this Git command:
git clone --branch 2.0 https://github.com/retrooper/packetevents.git
Build with this command:
./gradlew buildFor building building packetevents project without Adventure api shaded in.
./gradlew build -Pno-advExamples of how to use PacketEvents
Click this!