Plugin remapping

Co-authored-by: Nassim Jahnke <nassim@njahnke.dev>
This commit is contained in:
Jason Penilla
2022-10-29 15:22:32 -07:00
parent 216388dfdf
commit 13e0a1a71e
22 changed files with 1691 additions and 70 deletions

View File

@@ -229,7 +229,20 @@
Thread thread1 = new Thread(new ServerWatchdog(this));
thread1.setUncaughtExceptionHandler(new DefaultUncaughtExceptionHandlerWithName(DedicatedServer.LOGGER));
@@ -293,6 +396,7 @@
@@ -215,6 +318,12 @@
}
}
+ // Paper start
+ public java.io.File getPluginsFolder() {
+ return (java.io.File) this.options.valueOf("plugins");
+ }
+ // Paper end
+
@Override
public boolean isSpawningMonsters() {
return this.settings.getProperties().spawnMonsters && super.isSpawningMonsters();
@@ -293,6 +402,7 @@
this.queryThreadGs4.stop();
}
@@ -237,7 +250,7 @@
}
@Override
@@ -302,8 +406,8 @@
@@ -302,8 +412,8 @@
}
@Override
@@ -248,7 +261,7 @@
}
public void handleConsoleInput(String command, CommandSourceStack commandSource) {
@@ -311,12 +415,22 @@
@@ -311,12 +421,22 @@
}
public void handleConsoleInputs() {
@@ -272,7 +285,7 @@
}
@Override
@@ -383,7 +497,7 @@
@@ -383,7 +503,7 @@
@Override
public boolean isUnderSpawnProtection(ServerLevel world, BlockPos pos, Player player) {
@@ -281,7 +294,7 @@
return false;
} else if (this.getPlayerList().getOps().isEmpty()) {
return false;
@@ -541,16 +655,52 @@
@@ -541,16 +661,52 @@
@Override
public String getPluginNames() {
@@ -338,7 +351,7 @@
}
public void storeUsingWhiteList(boolean useWhitelist) {
@@ -660,4 +810,15 @@
@@ -660,4 +816,15 @@
}
}
}