1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2026-02-21 11:13:00 +01:00

Changed how we remove PlayerProfiles to reduce lag

This commit is contained in:
nossr50
2012-02-23 08:27:36 -08:00
parent 4acc0b63fd
commit a372ca34e6
3 changed files with 12 additions and 4 deletions

View File

@@ -84,7 +84,8 @@ public class Users {
{
PlayerProfile PP = Users.getProfile(player);
if(PP != null)
//Only remove PlayerProfile if user is offline
if(!player.isOnline())
{
PP.save();
if(players.containsKey(player))