Archiviert
13
0

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

Dieser Commit ist enthalten in:
EvilSeph 2011-05-16 17:29:57 -04:00
Ursprung 7f73594aa8
Commit f8d83d9e03

Datei anzeigen

@ -229,8 +229,13 @@ public class MinecraftServer implements Runnable, ICommandListener {
WorldSaveEvent event = new WorldSaveEvent(world.getWorld()); WorldSaveEvent event = new WorldSaveEvent(world.getWorld());
server.getPluginManager().callEvent(event); 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 // CraftBukkit end
} }