From f8d83d9e03348794649daad790bfd6a9a17931ba Mon Sep 17 00:00:00 2001 From: EvilSeph Date: Mon, 16 May 2011 17:29:57 -0400 Subject: [PATCH] Made player data save only if saving is turned on, in line with how the rest of saving works. --- src/main/java/net/minecraft/server/MinecraftServer.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java index 6b9e6e51b3..97fe250504 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 }