Shimell / DiscordWhitelisterSpigot

Spigot plugin that allows whitelisting users through a discord text channel.
MIT License
41 stars 23 forks source link

Could not pass event PlayerQuitEvent / PlayerJoinEvent to DiscordWhitelister #63

Closed BlairMany closed 2 years ago

BlairMany commented 2 years ago

Hello, This is a very nice plugin. Absolutely love being able to whitelist a player from discord.

However, I do get this error and a stack dump every time a user joins or leaves the game. Could not pass event PlayerQuitEvent to DiscordWhitelister. (It says JoinEvent for joins)

BlairMany commented 2 years ago

Attaching a dump from the log:

19.11 10:11:42 [Server] ERROR Could not pass event PlayerJoinEvent to DiscordWhitelister v1.4.8 19.11 10:11:42 [Server] INFO java.lang.NoClassDefFoundError: de/myzelyam/api/vanish/VanishAPI 19.11 10:11:42 [Server] INFO at uk.co.angrybee.joe.Utils.isVanished(Utils.java:22) ~[discord-whitelister-1.4.9.jar:?] 19.11 10:11:42 [Server] INFO at uk.co.angrybee.joe.events.JoinLeaveEvents.onPlayerJoin(JoinLeaveEvents.java:23) ~[discord-whitelister-1.4.9.jar:?] 19.11 10:11:42 [Server] INFO at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor346.execute(Unknown Source) ~[?:?] 19.11 10:11:42 [Server] INFO at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:69) ~[patched_1.17.1.jar:git-Paper-386] 19.11 10:11:42 [Server] INFO at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[patched_1.17.1.jar:git-Paper-386] 19.11 10:11:42 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[patched_1.17.1.jar:git-Paper-386] 19.11 10:11:42 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:628) ~[patched_1.17.1.jar:git-Paper-386] 19.11 10:11:42 [Server] INFO at net.minecraft.server.players.PlayerList.postChunkLoadJoin(PlayerList.java:360) ~[patched_1.17.1.jar:git-Paper-386] 19.11 10:11:42 [Server] INFO at net.minecraft.server.players.PlayerList.lambda$placeNewPlayer$1(PlayerList.java:302) ~[patched_1.17.1.jar:git-Paper-386] 19.11 10:11:42 [Server] INFO at net.minecraft.server.network.ServerGamePacketListenerImpl.tick(ServerGamePacketListenerImpl.java:307) ~[app:?] 19.11 10:11:42 [Server] INFO at net.minecraft.network.Connection.tick(Connection.java:555) ~[app:?] 19.11 10:11:42 [Server] INFO at net.minecraft.server.network.ServerConnectionListener.tick(ServerConnectionListener.java:201) ~[app:?] 19.11 10:11:42 [Server] INFO at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1656) ~[patched_1.17.1.jar:git-Paper-386] 19.11 10:11:42 [Server] INFO at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:490) ~[patched_1.17.1.jar:git-Paper-386] 19.11 10:11:42 [Server] INFO at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1483) ~[patched_1.17.1.jar:git-Paper-386] 19.11 10:11:42 [Server] INFO at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1282) ~[patched_1.17.1.jar:git-Paper-386] 19.11 10:11:42 [Server] INFO at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:319) ~[patched_1.17.1.jar:git-Paper-386] 19.11 10:11:42 [Server] INFO at java.lang.Thread.run(Thread.java:831) ~[?:?] 19.11 10:11:42 [Server] INFO Caused by: java.lang.ClassNotFoundException: de.myzelyam.api.vanish.VanishAPI 19.11 10:11:42 [Server] INFO at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:151) ~[patched_1.17.1.jar:git-Paper-386] 19.11 10:11:42 [Server] INFO at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:103) ~[patched_1.17.1.jar:git-Paper-386] 19.11 10:11:42 [Server] INFO at java.lang.ClassLoader.loadClass(ClassLoader.java:519) ~[?:?]

Shimell commented 2 years ago

I may have fixed the issue causing the exception but I am unable to test it myself at the moment. I have uploaded the latest version in releases if you would like to test it out for yourself.

BlairMany commented 2 years ago

I really appreciate you taking a look at this; however, I am still getting the same error. I have pulled down the code from here to try to look into it. Is the latest code posted here on GitHub? Can you also tell me what you are using for the development IDE and if it is InteliJ or Something else, are you using Maven or what exactly. So I can try to duplicate the setup.

tompointexe commented 2 years ago

It fixed it up for me :) thanks Server : Spigot 1.18

BlairMany commented 2 years ago

I would like to correct my previous answer. This does fix my issue. I did not see releases here and went back to the releases on the spigot site. This absolutely does correct my issue. Thank you.