JustinDevB / AntiCheatReplay

GNU General Public License v3.0
48 stars 19 forks source link

Rewamped plugin + added Artemis support #9

Closed terminalsin closed 2 years ago

terminalsin commented 2 years ago
JustinDevB commented 2 years ago

Running into issues with Artemis. AntiCheatReplay throws this error and doesn't load.

Also does the same with Karhu and Kauri, so I'm guessing it's a repository issue.

[15:28:50 ERROR]: Could not load 'plugins\AntiCheatReplay-2.5.3.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.NoClassDefFoundError: ac/artemis/anticheat/api/listener/PunishListener

terminalsin commented 2 years ago

Now that’s hella weird. I’ll look into it. Probably something due to how lambdas compile

JustinDevB commented 2 years ago

Did you ever find out the source of this?

terminalsin commented 2 years ago

Working on it

JustinDevB commented 2 years ago

Kauri dev is looking into why Kauri throws the same issue. His working theory is the obfuscation. Maybe that helps you?

JustinDevB commented 2 years ago

Found the issue with Karhu, I believe it might be something similar with Artemis and Kauri.

Karhu requires that KarhuAPI be installed, I think the way you are setting the AntiCheat is loading the Listener class for the AntiCheat even if it isn't installed on the server.

I set an anonymous checker function for Karhu to check if it and KarhuAPI is installed, but it still throws the error. It boots up perfectly fine once KarhuAPI is installed.

EDIT: Although the issue doesn't happen if other AntiCheats aren't installed.... Weird.

JustinDevB commented 2 years ago

Narrowed the issue down to being that all of the effected plugins use their own event register instead of Bukkit's