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, bungeecord, velocity

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>

Dependency

<dependency>
    <groupId>com.github.retrooper</groupId>
    <artifactId>packetevents-PLATFORM</artifactId>
    <version>2.5.0</version>
    <scope>provided</scope>
</dependency>

Last updated