Perf boost for banned logout.
Banned players no longer have their data saved on logout.
This commit is contained in:
parent
50d670a93c
commit
74e70dd21a
|
|
@ -604,7 +604,10 @@ class PlayerEventHandler implements Listener
|
||||||
}
|
}
|
||||||
|
|
||||||
//make sure his data is all saved - he might have accrued some claim blocks while playing that were not saved immediately
|
//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);
|
if(!player.isBanned())
|
||||||
|
{
|
||||||
|
this.dataStore.savePlayerData(player.getUniqueId(), playerData);
|
||||||
|
}
|
||||||
|
|
||||||
this.onPlayerDisconnect(event.getPlayer(), event.getQuitMessage());
|
this.onPlayerDisconnect(event.getPlayer(), event.getQuitMessage());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user