Hulk Hammer / onLivingUpdateEvent doesn't work with a dedicated server.
Vaelzan opened this issue ยท 1 comments
onLivingUpdateEvent (Hulk Hammer on-use event) doesn't work with a dedicated server. It causes the player using the Hulk Hammer to immediately disconnect and they then can't reconnect until the server is restarted.
is the problem line, because it's using the Minecraft class, which is client-side only, and should not be used on a dedicated server.
To me, it seems that the entire method seems like it is doing some overly complicated things when it really doesn't need to be, but it's too late at night for me to unravel it all and try to see if there's a reason you're nesting several loops there iterating over worlds and players. Why not just use event.player, event.player.getUniqueID(), and event.player.world instead of iterating over so many things?