Getting Started
PacketEvents runs on various platforms, thus encompassing multiple modules. To ensure correct implementation, it's vital to specify the module you'll be utilizing.
The code blocks provided below include a placeholder PLATFORM; please substitute it with one of the supported modules: spigot, velocity, bungeecord, fabric, sponge
To use PacketEvents in your project, you will need to add the following repository and dependency:
Repository
<repository>
<id>codemc-releases</id>
<url>https://repo.codemc.io/repository/maven-releases/</url>
</repository>
<repository>
<id>codemc-snapshots</id>
<url>https://repo.codemc.io/repository/maven-snapshots/</url>
</repository>
Dependency
<dependency>
<groupId>com.github.retrooper</groupId>
<artifactId>packetevents-PLATFORM</artifactId>
<version>2.8.0</version>
<scope>provided</scope>
</dependency>
Last updated
Was this helpful?