How to use
Maven:
First add my repository to your pom.xml so Maven can find the library.
Code (Text):
<repositories>
<repository>
<id>lukasalt-repo</id>
<url>https://repo.lukasa.lt/repository/maven-public/</url>
</repository>
</repositories>
Then, include the actual dependency
Code (Text):
<dependencies>
<dependency>
<groupId>com.comphenix.packetwrapper</groupId>
<artifactId>PacketWrapper</artifactId>
<version>1.20-2.2.0</version>
<scope>provided</scope>
</dependency>
</dependencies>
Either install PacketWrapper as a plugin or shade it into your plugin. Alternatively, you can copy just the required classes (AbstractPacket and the Wrappers you are using) directly to your project.
Gradle (build.gradle):
First add my repository so Gradle can find the dependency:
Code (Text):
repositories {
...
maven { url 'https://repo.lukasa.lt/repository/maven-public/' }
}
Then add the actual dependency:
Code (Text):
dependencies {
...
compile 'com.comphenix.packetwrapper:packetWrapper:1.20-2.2.0'
}
Either install PacketWrapper as a plugin on the server or shadow it into your plugin. Alternatively, you can copy just the required classes (AbstractPacket and the Wrappers you are using) directly to your project.