From 595e74227bd936d1589152780c226511f2d69d87 Mon Sep 17 00:00:00 2001 From: Zach Brown <1254957+zachbr@users.noreply.github.com> Date: Sun, 27 Jul 2014 14:26:04 -0500 Subject: [PATCH] Fix CraftBukkit-Patches/0032 that got mangled in the upstream update --- ...032-Allow-Disabling-of-Command-Logging.patch | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/CraftBukkit-Patches/0032-Allow-Disabling-of-Command-Logging.patch b/CraftBukkit-Patches/0032-Allow-Disabling-of-Command-Logging.patch index c540b8411..541cef94e 100644 --- a/CraftBukkit-Patches/0032-Allow-Disabling-of-Command-Logging.patch +++ b/CraftBukkit-Patches/0032-Allow-Disabling-of-Command-Logging.patch @@ -1,6 +1,6 @@ From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 -From: Zach Brown <1254957+zachbr@users.noreply.github.com> -Date: Sun, 27 Jul 2014 14:12:17 -0500 +From: md_5 +Date: Fri, 21 Jun 2013 18:01:29 +1000 Subject: [PATCH] Allow Disabling of Command Logging @@ -22,19 +22,14 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 --- a/src/main/java/org/spigotmc/SpigotConfig.java +++ b/src/main/java/org/spigotmc/SpigotConfig.java @@ -0,0 +0,0 @@ public class SpigotConfig - - private static double getDouble(String path, double def) - { -- config.addDefault( path, def ); -- return config.getDouble( path, config.getDouble( path ) ); -+ config.addDefault(path, def); -+ return config.getDouble(path, config.getDouble(path)); -+ } + config.addDefault( path, def ); + return config.getDouble( path, config.getDouble( path ) ); + } + + public static boolean logCommands; + private static void logCommands() + { + logCommands = getBoolean( "commands.log", true ); - } ++ } } -- \ No newline at end of file