Made player data save only if saving is turned on, in line with how the rest of saving works.

This commit is contained in:
EvilSeph 2011-05-16 17:29:57 -04:00
parent 7f73594aa8
commit f8d83d9e03

View file

@ -229,8 +229,13 @@ public class MinecraftServer implements Runnable, ICommandListener {
WorldSaveEvent event = new WorldSaveEvent(world.getWorld());
server.getPluginManager().callEvent(event);
}
// CraftBukkit end
this.serverConfigurationManager.savePlayers(); // CraftBukkit - player data should be saved whenever a save happens.
// CraftBukkit start - player data should be saved whenever a save happens and ONLY if saving is enabled.
WorldServer wserver = this.worlds.get(0);
if (!wserver.y) {
this.serverConfigurationManager.savePlayers();
}
// CraftBukkit end
}