summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/MinecraftServer.java
diff options
context:
space:
mode:
authorEvilSeph <evilseph@unaligned.org>2011-05-16 17:29:57 -0400
committerEvilSeph <evilseph@unaligned.org>2011-05-16 17:33:43 -0400
commitf8d83d9e03348794649daad790bfd6a9a17931ba (patch)
treeb8c7e452dab422dbc48f253d5bf164f17d2c035d /src/main/java/net/minecraft/server/MinecraftServer.java
parent7f73594aa86b93f28162173b0c8dec526ec510b3 (diff)
downloadcraftbukkit-f8d83d9e03348794649daad790bfd6a9a17931ba.tar
craftbukkit-f8d83d9e03348794649daad790bfd6a9a17931ba.tar.gz
craftbukkit-f8d83d9e03348794649daad790bfd6a9a17931ba.tar.lz
craftbukkit-f8d83d9e03348794649daad790bfd6a9a17931ba.tar.xz
craftbukkit-f8d83d9e03348794649daad790bfd6a9a17931ba.zip
Made player data save only if saving is turned on, in line with how the rest of saving works.
Diffstat (limited to 'src/main/java/net/minecraft/server/MinecraftServer.java')
-rw-r--r--src/main/java/net/minecraft/server/MinecraftServer.java7
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
}