ProtocolManager is null
XandorSportel opened this issue ยท 1 comments
- This issue is not solved in a development build
Describe the bug
ProtocolManager = null
To Reproduce
Steps to reproduce the behavior:
- Add "depend: [ProtocolLib]" to plugin.yml
- Add the ProtocolLib Maven Repository
- Load ProtocolManager in onLoad()
private ProtocolManager protocolManager;
@Override
public void onLoad() {
if (ProtocolLibrary.getProtocolManager() == null) {
Bukkit.getLogger().severe("ProtocolLib not found!");
}
protocolManager = ProtocolLibrary.getProtocolManager();
}
Expected behavior
I can use the protocol manager.
Version Info
/protocol dump pastebin
Additional context
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>net.carbonnetwork</groupId>
<artifactId>TestPlugin</artifactId>
<version>0.1.0-dev+b7</version>
<packaging>jar</packaging>
<name>TestPlugin</name>
<properties>
<java.version>17</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<build>
<defaultGoal>clean package</defaultGoal>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.13.0</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.5.3</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
</build>
<repositories>
<repository>
<id>papermc-repo</id>
<url>https://repo.papermc.io/repository/maven-public/</url>
</repository>
<repository>
<id>sonatype</id>
<url>https://oss.sonatype.org/content/groups/public/</url>
</repository>
<repository>
<id>dmulloy2-repo</id>
<url>https://repo.dmulloy2.net/repository/public/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>io.papermc.paper</groupId>
<artifactId>paper-api</artifactId>
<version>1.20.4-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.comphenix.protocol</groupId>
<artifactId>ProtocolLib</artifactId>
<version>5.3.0</version>
</dependency>
</dependencies>
</project>