Disable the ability to disable chunk-gc
This commit is contained in:
parent
7cdf470eab
commit
38a24558c2
|
@ -1,4 +1,4 @@
|
||||||
From b0f3a478531964dc847038cb0292af5dc78f3534 Mon Sep 17 00:00:00 2001
|
From 90c324d6ba0cda9717efb4bd93cb21c666cc4b75 Mon Sep 17 00:00:00 2001
|
||||||
From: md_5 <md_5@bigpond.com>
|
From: md_5 <md_5@bigpond.com>
|
||||||
Date: Sun, 30 Dec 2012 23:56:05 -0600
|
Date: Sun, 30 Dec 2012 23:56:05 -0600
|
||||||
Subject: [PATCH] Spigot Changes. This commit has undergone basic testing and
|
Subject: [PATCH] Spigot Changes. This commit has undergone basic testing and
|
||||||
|
@ -32,7 +32,7 @@ Subject: [PATCH] Spigot Changes. This commit has undergone basic testing and
|
||||||
.../java/net/minecraft/server/WorldServer.java | 133 ++++--
|
.../java/net/minecraft/server/WorldServer.java | 133 ++++--
|
||||||
.../java/org/bukkit/craftbukkit/CraftServer.java | 98 ++++-
|
.../java/org/bukkit/craftbukkit/CraftServer.java | 98 ++++-
|
||||||
.../java/org/bukkit/craftbukkit/CraftWorld.java | 76 +++-
|
.../java/org/bukkit/craftbukkit/CraftWorld.java | 76 +++-
|
||||||
src/main/java/org/bukkit/craftbukkit/Spigot.java | 22 +
|
src/main/java/org/bukkit/craftbukkit/Spigot.java | 27 ++
|
||||||
.../craftbukkit/chunkio/ChunkIOProvider.java | 2 +-
|
.../craftbukkit/chunkio/ChunkIOProvider.java | 2 +-
|
||||||
.../bukkit/craftbukkit/command/RestartCommand.java | 24 +
|
.../bukkit/craftbukkit/command/RestartCommand.java | 24 +
|
||||||
.../craftbukkit/command/TicksPerSecondCommand.java | 35 ++
|
.../craftbukkit/command/TicksPerSecondCommand.java | 35 ++
|
||||||
|
@ -48,7 +48,7 @@ Subject: [PATCH] Spigot Changes. This commit has undergone basic testing and
|
||||||
.../org/bukkit/craftbukkit/util/TimedThread.java | 37 ++
|
.../org/bukkit/craftbukkit/util/TimedThread.java | 37 ++
|
||||||
.../bukkit/craftbukkit/util/WatchdogThread.java | 88 ++++
|
.../bukkit/craftbukkit/util/WatchdogThread.java | 88 ++++
|
||||||
src/main/resources/configurations/bukkit.yml | 55 +++
|
src/main/resources/configurations/bukkit.yml | 55 +++
|
||||||
42 files changed, 1670 insertions(+), 156 deletions(-)
|
42 files changed, 1675 insertions(+), 156 deletions(-)
|
||||||
create mode 100644 src/main/java/org/bukkit/craftbukkit/Spigot.java
|
create mode 100644 src/main/java/org/bukkit/craftbukkit/Spigot.java
|
||||||
create mode 100644 src/main/java/org/bukkit/craftbukkit/command/RestartCommand.java
|
create mode 100644 src/main/java/org/bukkit/craftbukkit/command/RestartCommand.java
|
||||||
create mode 100644 src/main/java/org/bukkit/craftbukkit/command/TicksPerSecondCommand.java
|
create mode 100644 src/main/java/org/bukkit/craftbukkit/command/TicksPerSecondCommand.java
|
||||||
|
@ -1579,10 +1579,10 @@ index cb20066..3544aa3 100644
|
||||||
return getChunkAt(x >> 4, z >> 4).getBlock(x & 0xF, y & 0xFF, z & 0xF);
|
return getChunkAt(x >> 4, z >> 4).getBlock(x & 0xF, y & 0xFF, z & 0xF);
|
||||||
diff --git a/src/main/java/org/bukkit/craftbukkit/Spigot.java b/src/main/java/org/bukkit/craftbukkit/Spigot.java
|
diff --git a/src/main/java/org/bukkit/craftbukkit/Spigot.java b/src/main/java/org/bukkit/craftbukkit/Spigot.java
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 0000000..e11aee4
|
index 0000000..0e04773
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/src/main/java/org/bukkit/craftbukkit/Spigot.java
|
+++ b/src/main/java/org/bukkit/craftbukkit/Spigot.java
|
||||||
@@ -0,0 +1,22 @@
|
@@ -0,0 +1,27 @@
|
||||||
+package org.bukkit.craftbukkit;
|
+package org.bukkit.craftbukkit;
|
||||||
+
|
+
|
||||||
+import org.bukkit.command.SimpleCommandMap;
|
+import org.bukkit.command.SimpleCommandMap;
|
||||||
|
@ -1602,6 +1602,11 @@ index 0000000..e11aee4
|
||||||
+ server.commandComplete = configuration.getBoolean("settings.command-complete", true);
|
+ server.commandComplete = configuration.getBoolean("settings.command-complete", true);
|
||||||
+ server.spamGuardExclusions = configuration.getStringList("settings.spam-exclusions");
|
+ server.spamGuardExclusions = configuration.getStringList("settings.spam-exclusions");
|
||||||
+
|
+
|
||||||
|
+ if (server.chunkGCPeriod == 0) {
|
||||||
|
+ server.getLogger().severe("[Spigot] You should not disable chunk-gc. Resetting period-in-ticks to 600 ticks.");
|
||||||
|
+ server.chunkGCPeriod = 600;
|
||||||
|
+ }
|
||||||
|
+
|
||||||
+ org.bukkit.craftbukkit.util.LightningSimulator.configure(configuration);
|
+ org.bukkit.craftbukkit.util.LightningSimulator.configure(configuration);
|
||||||
+ }
|
+ }
|
||||||
+}
|
+}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
From c7846efa49cb600996091600a7295c3bb92b1e74 Mon Sep 17 00:00:00 2001
|
From e25646701f0e99f9b8d25c5bab68fce7dabf37ec Mon Sep 17 00:00:00 2001
|
||||||
From: lishid <lishid@gmail.com>
|
From: lishid <lishid@gmail.com>
|
||||||
Date: Mon, 21 Jan 2013 16:59:04 +1100
|
Date: Mon, 21 Jan 2013 16:59:04 +1100
|
||||||
Subject: [PATCH] Add oreobfuscator for Spigot.
|
Subject: [PATCH] Add oreobfuscator for Spigot.
|
||||||
|
@ -254,7 +254,7 @@ index 0000000..6d5a519
|
||||||
+ }
|
+ }
|
||||||
+}
|
+}
|
||||||
diff --git a/src/main/java/org/bukkit/craftbukkit/Spigot.java b/src/main/java/org/bukkit/craftbukkit/Spigot.java
|
diff --git a/src/main/java/org/bukkit/craftbukkit/Spigot.java b/src/main/java/org/bukkit/craftbukkit/Spigot.java
|
||||||
index 2b0362a..b6a8d9e 100644
|
index a535b69..9f0a99a 100644
|
||||||
--- a/src/main/java/org/bukkit/craftbukkit/Spigot.java
|
--- a/src/main/java/org/bukkit/craftbukkit/Spigot.java
|
||||||
+++ b/src/main/java/org/bukkit/craftbukkit/Spigot.java
|
+++ b/src/main/java/org/bukkit/craftbukkit/Spigot.java
|
||||||
@@ -24,6 +24,10 @@ public class Spigot {
|
@@ -24,6 +24,10 @@ public class Spigot {
|
||||||
|
@ -265,9 +265,9 @@ index 2b0362a..b6a8d9e 100644
|
||||||
+ server.orebfuscatorUpdateRadius = configuration.getInt("orebfuscator.update-radius", 2);
|
+ server.orebfuscatorUpdateRadius = configuration.getInt("orebfuscator.update-radius", 2);
|
||||||
+ server.orebfuscatorDisabledWorlds = configuration.getStringList("orebfuscator.disabled-worlds");
|
+ server.orebfuscatorDisabledWorlds = configuration.getStringList("orebfuscator.disabled-worlds");
|
||||||
+
|
+
|
||||||
org.bukkit.craftbukkit.util.LightningSimulator.configure(configuration);
|
if (server.chunkGCPeriod == 0) {
|
||||||
}
|
server.getLogger().severe("[Spigot] You should not disable chunk-gc. Resetting period-in-ticks to 600 ticks.");
|
||||||
}
|
server.chunkGCPeriod = 600;
|
||||||
diff --git a/src/main/resources/configurations/bukkit.yml b/src/main/resources/configurations/bukkit.yml
|
diff --git a/src/main/resources/configurations/bukkit.yml b/src/main/resources/configurations/bukkit.yml
|
||||||
index c41fac1..fee0bb1 100644
|
index c41fac1..fee0bb1 100644
|
||||||
--- a/src/main/resources/configurations/bukkit.yml
|
--- a/src/main/resources/configurations/bukkit.yml
|
||||||
|
|
Loading…
Reference in New Issue