diff options
-rw-r--r-- | src/main/java/net/minecraft/server/MinecraftServer.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java index 6b9e6e51..97fe2505 100644 --- a/src/main/java/net/minecraft/server/MinecraftServer.java +++ b/src/main/java/net/minecraft/server/MinecraftServer.java @@ -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 } |