You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure what you mean here.
When you use hook.getBannedPlayer() does that throw the NPE (indicating hook == null) or is the player returned null?
Also KickHook has no method getKickingPlayer(). Looking for getModerator() maybe?
Also also, getBannedPlayer() docs, "@return banned if not ipban, null otherwise". Is it an IP ban.
WWOL
EDIT: If the player isn't online then there is no player instance so getBannedPlayer() will be null.
If the player is online then it should work fine as the rest of the code that uses the player instance is working (IE player != null)
BanHook
http://pastebin.com/hVrVX5u1
KickHook:
http://pastebin.com/QXYZ1ABt
Removing the line from the code makes the whole thing work again.
The text was updated successfully, but these errors were encountered: