mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-03 05:26:50 +01:00
Made player data save only if saving is turned on, in line with how the rest of saving works.
This commit is contained in:
parent
7f73594aa8
commit
f8d83d9e03
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue