ProtocolLib

3M Downloads

Trying to incorporate ProtocolLib in my plugin

FourNineRugz opened this issue ยท 1 comments

commented

Hello, I have been struggling trying to hook into ProtocolLib by using the following code. I'm not sure what to use for the ListeningWhitelist, but even on the latest snapshot version which I found on

https://repo.dmulloy2.net/#browse/browse:public:com%2Fcomphenix%2Fprotocol%2FProtocolLib%2F5.3.0-SNAPSHOT%2F5.3.0-20240608.171401-1

I can't get to finally rebuilding this... my plugin.yml is also using ProtocolLib as a depend. Any help is appreciated.

"pom.xml"
https://mclo.gs/RXVNCRl

"AnvilGUIListener.java"
https://mclo.gs/ZQP7pTy

D:\MC Plugin Development\AnvilNicknamer\src\main\java\com\rugzy\anvilnicknamer\AnvilGUIListener.java:62:42
java: cannot find symbol
symbol: method builder()
location: class com.comphenix.protocol.events.ListeningWhitelist
D:\MC Plugin Development\AnvilNicknamer\src\main\java\com\rugzy\anvilnicknamer\AnvilGUIListener.java:70:42
java: cannot find symbol
symbol: method builder()
location: class com.comphenix.protocol.events.ListeningWhitelist
D:\MC Plugin Development\AnvilNicknamer\src\main\java\com\rugzy\anvilnicknamer\AnvilGUIListener.java:75:13
java: method does not override or implement a method from a supertype

commented

I am writing a plugin to open an Anvil GUI for a person to change their own nickname which is using ProtocolLib