mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-03 09:19:38 +01:00
42 lines
1.7 KiB
Diff
42 lines
1.7 KiB
Diff
From 28494b41113a7159f6ef4c828238c0492225dd89 Mon Sep 17 00:00:00 2001
|
|
From: Zach Brown <zach.brown@destroystokyo.com>
|
|
Date: Sat, 7 Mar 2015 20:46:54 -0600
|
|
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
|
|
index c2003a3..57363d5 100644
|
|
--- a/src/main/java/org/github/paperspigot/PaperSpigotConfig.java
|
|
+++ b/src/main/java/org/github/paperspigot/PaperSpigotConfig.java
|
|
@@ -143,4 +143,14 @@ public class PaperSpigotConfig
|
|
{
|
|
babyZombieMovementSpeed = getDouble( "settings.baby-zombie-movement-speed", 0.5D ); // Player moves at 0.1F, for reference
|
|
}
|
|
+
|
|
+ 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 is not recommended and may cause issues" );
|
|
+ }
|
|
+ }
|
|
}
|
|
diff --git a/src/main/java/org/spigotmc/AsyncCatcher.java b/src/main/java/org/spigotmc/AsyncCatcher.java
|
|
index 4b3aa85..f7e8d16 100644
|
|
--- a/src/main/java/org/spigotmc/AsyncCatcher.java
|
|
+++ b/src/main/java/org/spigotmc/AsyncCatcher.java
|
|
@@ -5,7 +5,7 @@ import net.minecraft.server.MinecraftServer;
|
|
public class AsyncCatcher
|
|
{
|
|
|
|
- public static boolean enabled = true;
|
|
+ public static boolean enabled = org.github.paperspigot.PaperSpigotConfig.asyncCatcherFeature; // PaperSpigot - Allow disabling of AsyncCatcher from PaperSpigotConfig
|
|
|
|
public static void catchOp(String reason)
|
|
{
|
|
--
|
|
1.9.1
|
|
|