AtlasMediaGroup / IcarusMod

The Superior Freedom Network custom plugin.
Other
8 stars 13 forks source link

Nullpointer in PlayerLoginEvent #134

Closed Hockeyfan360 closed 9 years ago

Hockeyfan360 commented 9 years ago

When a player logs in, the system checks to make sure that they are not an admin before kicking them for being banned. Same with whitelist. This throws a nullpointer exception.

I think that this is happening because it is the login event, not join, and because isRankOrHigher() requires a CommandSender (you can use the player type as well). However, I have not actually looked into this much, so I could be completely wrong, Hence, I have labeled this as a bug:unconfirmed and question. This is the same error I get every time.

This happens when a player is banned, and is an admin. However, I am not in a position where I can test to see if they can actually get in. Also, instead of this, we should just remove them from bans as a whole.