Depending on pre‐built PacketEvents
retrooper edited this page May 8, 2024
·
6 revisions
Option 1: Download the latest stable release on Modrinth
Option 2: Download our latest development build on Jenkins
Add this repository to your pom.xml
<repository>
<id>codemc-releases</id>
<url>https://repo.codemc.io/repository/maven-releases/</url>
</repository>
Add the packetevents dependency to your pom.xml.
Replace PLATFORM with the platform you are developing for. (For example spigot or bungeecord)
<dependency>
<groupId>com.github.retrooper.packetevents</groupId>
<artifactId>PLATFORM</artifactId>
<version>2.3.0</version>
<scope>provided</scope>
</dependency>
Add this repository to your build.gradle
maven { url 'https://repo.codemc.io/repository/maven-releases/' }
Add the packetevents dependency to your build.gradle
Replace PLATFORM with the platform you are developing for. (For example spigot or bungeecord)
compileOnly 'com.github.retrooper.packetevents:PLATFORM:2.3.0'
depend:
- packetevents
Examples of how to use PacketEvents
Click this!