2014-06-22 22:50:22 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Zach Brown <1254957+zachbr@users.noreply.github.com>
|
2014-08-06 01:45:22 +02:00
|
|
|
Date: Tue, 5 Aug 2014 17:39:04 -0500
|
2014-06-22 22:50:22 +02:00
|
|
|
Subject: [PATCH] Ability to disable asynccatcher
|
|
|
|
|
|
|
|
|
2014-07-03 03:47:25 +02:00
|
|
|
diff --git a/src/main/java/org/github/paperspigot/PaperSpigotConfig.java b/src/main/java/org/github/paperspigot/PaperSpigotConfig.java
|
2014-06-22 22:50:22 +02:00
|
|
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 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
|
|
|
|
@@ -0,0 +0,0 @@ public class PaperSpigotConfig
|
2014-08-06 01:45:22 +02:00
|
|
|
{
|
|
|
|
babyZombieMovementSpeed = getDouble( "settings.baby-zombie-movement-speed", 0.5D); // Player moves at 0.1F, for reference
|
2014-06-22 22:50:22 +02:00
|
|
|
}
|
|
|
|
+
|
|
|
|
+ public static boolean asyncCatcherFeature;
|
|
|
|
+ private static void asyncCatcherFeature()
|
|
|
|
+ {
|
|
|
|
+ asyncCatcherFeature = getBoolean( "settings.async-plugin-bad-magic-catcher", true );
|
2014-08-06 01:45:22 +02:00
|
|
|
+ if (!asyncCatcherFeature) {
|
|
|
|
+ Bukkit.getLogger().log( Level.INFO, "Disabling async plugin bad ju-ju catcher, this may be bad depending on your plugins" );
|
2014-06-22 22:50:22 +02:00
|
|
|
+ }
|
|
|
|
+ }
|
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 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
|
|
|
--- a/src/main/java/org/spigotmc/AsyncCatcher.java
|
|
|
|
+++ b/src/main/java/org/spigotmc/AsyncCatcher.java
|
2014-08-06 01:45:22 +02:00
|
|
|
@@ -0,0 +0,0 @@ import net.minecraft.server.MinecraftServer;
|
2014-07-03 03:47:25 +02:00
|
|
|
public class AsyncCatcher
|
|
|
|
{
|
|
|
|
|
|
|
|
- public static boolean enabled = true;
|
2014-08-06 01:45:22 +02:00
|
|
|
+ public static boolean enabled = org.github.paperspigot.PaperSpigotConfig.asyncCatcherFeature; // PaperSpigot - Allow disabling of AsyncCatcher from PaperSpigotConfig
|
2014-07-03 03:47:25 +02:00
|
|
|
|
|
|
|
public static void catchOp(String reason)
|
|
|
|
{
|
2014-06-22 22:50:22 +02:00
|
|
|
--
|