2014-07-23 05:04:05 +02:00
|
|
|
From ba45279e3c472cf8a1ac8af1915cff787aa1a7d9 Mon Sep 17 00:00:00 2001
|
2014-07-03 03:47:25 +02:00
|
|
|
From: Zach Brown <Zbob750@live.com>
|
2014-07-13 02:38:57 +02:00
|
|
|
Date: Sat, 12 Jul 2014 19:37:16 -0500
|
2014-07-03 03:47:25 +02:00
|
|
|
Subject: [PATCH] Ability to disable asynccatcher
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/org/github/paperspigot/PaperSpigotConfig.java b/src/main/java/org/github/paperspigot/PaperSpigotConfig.java
|
2014-07-13 02:38:57 +02:00
|
|
|
index e296da2..f7dc787 100644
|
2014-07-03 03:47:25 +02:00
|
|
|
--- a/src/main/java/org/github/paperspigot/PaperSpigotConfig.java
|
|
|
|
+++ b/src/main/java/org/github/paperspigot/PaperSpigotConfig.java
|
2014-07-13 02:38:57 +02:00
|
|
|
@@ -131,4 +131,13 @@ public class PaperSpigotConfig
|
2014-07-03 03:47:25 +02:00
|
|
|
config.addDefault( path, def );
|
|
|
|
return config.getString( path, config.getString( path ) );
|
|
|
|
}
|
|
|
|
+
|
|
|
|
+ public static boolean asyncCatcherFeature;
|
|
|
|
+ private static void asyncCatcherFeature()
|
|
|
|
+ {
|
|
|
|
+ asyncCatcherFeature = getBoolean( "settings.async-plugin-bad-magic-catcher", true );
|
|
|
|
+ if ( !asyncCatcherFeature ) {
|
|
|
|
+ Bukkit.getLogger().log( Level.INFO, "Disabling async plugin bad ju-ju catcher, this might be bad depending on your plugins" );
|
|
|
|
+ }
|
|
|
|
+ }
|
2014-07-13 02:38:57 +02:00
|
|
|
}
|
2014-07-03 03:47:25 +02:00
|
|
|
diff --git a/src/main/java/org/spigotmc/AsyncCatcher.java b/src/main/java/org/spigotmc/AsyncCatcher.java
|
|
|
|
index 4b3aa85..c4312db 100644
|
|
|
|
--- a/src/main/java/org/spigotmc/AsyncCatcher.java
|
|
|
|
+++ b/src/main/java/org/spigotmc/AsyncCatcher.java
|
|
|
|
@@ -1,11 +1,12 @@
|
|
|
|
package org.spigotmc;
|
|
|
|
|
|
|
|
import net.minecraft.server.MinecraftServer;
|
|
|
|
+import org.github.paperspigot.PaperSpigotConfig; // PaperSpigot
|
|
|
|
|
|
|
|
public class AsyncCatcher
|
|
|
|
{
|
|
|
|
|
|
|
|
- public static boolean enabled = true;
|
|
|
|
+ public static boolean enabled = PaperSpigotConfig.asyncCatcherFeature; // PaperSpigot - AsyncCatcher override feature
|
|
|
|
|
|
|
|
public static void catchOp(String reason)
|
|
|
|
{
|
|
|
|
--
|
|
|
|
1.9.1
|
|
|
|
|