Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-21 14:00:11 +01:00
Made player data save only if saving is turned on, in line with how the rest of saving works.
Dieser Commit ist enthalten in:
Ursprung
7f73594aa8
Commit
f8d83d9e03
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren