|
|
|
|
@@ -453,10 +453,10 @@ index a9289072b048095330ea32d7c965e8dda61a36fc..bffd82b3d89e12f2c3d6a7e89f5a8ecd
|
|
|
|
|
this.generator = gen;
|
|
|
|
|
this.world = new CraftWorld((ServerLevel) this, gen, biomeProvider, env);
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
|
|
|
|
index 1b65a38fd65f420f79bbd4c2f6c53e3d9b2d8f81..12e4fb8d9e085991c54a78849e8492e47ba194ed 100644
|
|
|
|
|
index 2132954c6e8a32b33bb6b19344db047c32f109cc..fb690144143e6f23ca4064d84e6e0bbad059ceb5 100644
|
|
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
|
|
|
|
@@ -1033,6 +1033,7 @@ public final class CraftServer implements Server {
|
|
|
|
|
@@ -977,6 +977,7 @@ public final class CraftServer implements Server {
|
|
|
|
|
org.spigotmc.SpigotConfig.init((File) console.options.valueOf("spigot-settings")); // Spigot
|
|
|
|
|
this.console.paperConfigurations.reloadConfigs(this.console);
|
|
|
|
|
org.purpurmc.purpur.PurpurConfig.init((File) console.options.valueOf("purpur-settings")); // Purpur
|
|
|
|
|
@@ -464,7 +464,7 @@ index 1b65a38fd65f420f79bbd4c2f6c53e3d9b2d8f81..12e4fb8d9e085991c54a78849e8492e4
|
|
|
|
|
for (ServerLevel world : this.console.getAllLevels()) {
|
|
|
|
|
// world.serverLevelData.setDifficulty(config.difficulty); // Paper - per level difficulty
|
|
|
|
|
world.setSpawnSettings(world.serverLevelData.getDifficulty() != Difficulty.PEACEFUL && config.spawnMonsters, config.spawnAnimals); // Paper - per level difficulty (from MinecraftServer#setDifficulty(ServerLevel, Difficulty, boolean))
|
|
|
|
|
@@ -1049,6 +1050,7 @@ public final class CraftServer implements Server {
|
|
|
|
|
@@ -993,6 +994,7 @@ public final class CraftServer implements Server {
|
|
|
|
|
}
|
|
|
|
|
world.spigotConfig.init(); // Spigot
|
|
|
|
|
world.purpurConfig.init(); // Purpur
|
|
|
|
|
@@ -472,7 +472,7 @@ index 1b65a38fd65f420f79bbd4c2f6c53e3d9b2d8f81..12e4fb8d9e085991c54a78849e8492e4
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Plugin[] pluginClone = pluginManager.getPlugins().clone(); // Paper
|
|
|
|
|
@@ -1065,6 +1067,7 @@ public final class CraftServer implements Server {
|
|
|
|
|
@@ -1009,6 +1011,7 @@ public final class CraftServer implements Server {
|
|
|
|
|
org.spigotmc.SpigotConfig.registerCommands(); // Spigot
|
|
|
|
|
io.papermc.paper.command.PaperCommands.registerCommands(this.console); // Paper
|
|
|
|
|
org.purpurmc.purpur.PurpurConfig.registerCommands(); // Purpur
|
|
|
|
|
@@ -480,7 +480,7 @@ index 1b65a38fd65f420f79bbd4c2f6c53e3d9b2d8f81..12e4fb8d9e085991c54a78849e8492e4
|
|
|
|
|
this.overrideAllCommandBlockCommands = this.commandsConfiguration.getStringList("command-block-overrides").contains("*");
|
|
|
|
|
this.ignoreVanillaPermissions = this.commandsConfiguration.getBoolean("ignore-vanilla-permissions");
|
|
|
|
|
|
|
|
|
|
@@ -2886,6 +2889,13 @@ public final class CraftServer implements Server {
|
|
|
|
|
@@ -2831,6 +2834,13 @@ public final class CraftServer implements Server {
|
|
|
|
|
}
|
|
|
|
|
// Purpur end
|
|
|
|
|
|
|
|
|
|
|