Banned players no longer show leave messages.

Admins still see the confirmation for the ban, and notifications for any
auto-bans (with reasons).  Players just aren't bothered with the leave
message.  Important for spam using lots of different accounts.
This commit is contained in:
ryanhamshire 2014-09-30 20:57:54 -07:00
parent 259e285847
commit ae56fdcbcc

View File

@ -594,6 +594,12 @@ class PlayerEventHandler implements Listener
event.setQuitMessage(null);
}
//silence notifications when the player is banned
if(player.isBanned())
{
event.setQuitMessage(null);
}
//make sure his data is all saved - he might have accrued some claim blocks while playing that were not saved immediately
this.dataStore.savePlayerData(player.getUniqueId(), playerData);