mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-26 20:46:59 +01:00
385f313a8b
Upstream has released updates that appear to apply and compile correctly. This update has not been tested by PaperMC and as with ANY update, please do your own testing Bukkit Changes: d41796de SPIGOT-7071: Add Player#stopSound(SoundCategory category) 61dae5b2 SPIGOT-7011, SPIGOT-7065: Overhaul of structures CraftBukkit Changes: 991aeda12 SPIGOT-1729, SPIGOT-7090: Keep precision in teleportation between worlds 5c9a5f628 SPIGOT-7071: Add Player#stopSound(SoundCategory category) 68f888ded SPIGOT-7011, SPIGOT-7065: Overhaul of structures 0231a3746 Remove outdated build delay. Spigot Changes: 475f6008 Rebuild patches 8ce1761f Rebuild patches
49 lines
1.8 KiB
Diff
49 lines
1.8 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Shane Freeder <theboyetronic@gmail.com>
|
|
Date: Sat, 3 Jul 2021 21:18:41 +0100
|
|
Subject: [PATCH] WorldCreator#keepSpawnLoaded
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/WorldCreator.java b/src/main/java/org/bukkit/WorldCreator.java
|
|
index cbdcac688afb7c13dd7058fa522bbd2c5adc445e..355f9f27d29c65efebf099a72c37892a309edef1 100644
|
|
--- a/src/main/java/org/bukkit/WorldCreator.java
|
|
+++ b/src/main/java/org/bukkit/WorldCreator.java
|
|
@@ -22,6 +22,7 @@ public class WorldCreator {
|
|
private boolean generateStructures = true;
|
|
private String generatorSettings = "";
|
|
private boolean hardcore = false;
|
|
+ private net.kyori.adventure.util.TriState keepSpawnLoaded = net.kyori.adventure.util.TriState.NOT_SET; // Paper
|
|
|
|
/**
|
|
* Creates an empty WorldCreationOptions for the given world name
|
|
@@ -573,4 +574,29 @@ public class WorldCreator {
|
|
|
|
return result;
|
|
}
|
|
+
|
|
+ // Paper start
|
|
+
|
|
+ /**
|
|
+ * Returns the current intent to keep the world loaded, @see {@link WorldCreator#keepSpawnLoaded(net.kyori.adventure.util.TriState)}
|
|
+ *
|
|
+ * @return the current tristate value
|
|
+ */
|
|
+ @NotNull
|
|
+ public net.kyori.adventure.util.TriState keepSpawnLoaded() {
|
|
+ return keepSpawnLoaded;
|
|
+ }
|
|
+
|
|
+ /**
|
|
+ * Controls if a world should be kept loaded or not, default (NOT_SET) will use the servers standard
|
|
+ * configuration, otherwise, will act as an override towards this setting
|
|
+ *
|
|
+ * @param keepSpawnLoaded the new value
|
|
+ */
|
|
+ public void keepSpawnLoaded(@NotNull net.kyori.adventure.util.TriState keepSpawnLoaded) {
|
|
+ java.util.Objects.requireNonNull(keepSpawnLoaded, "keepSpawnLoaded");
|
|
+ this.keepSpawnLoaded = keepSpawnLoaded;
|
|
+ }
|
|
+
|
|
+ // Paper end
|
|
}
|