Perf boost for banned logout.
Banned players no longer have their data saved on logout.
This commit is contained in:
1 parent
50d670a93c
commit
74e70dd21a
1 file changed
+4
-1
@@ -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
|
||||
this.dataStore.savePlayerData(player.getUniqueId(), playerData);
|
||||
if(!player.isBanned())
|
||||
{
|
||||
this.dataStore.savePlayerData(player.getUniqueId(), playerData);
|
||||
}
|
||||
|
||||
this.onPlayerDisconnect(event.getPlayer(), event.getQuitMessage());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user