Fix CraftBukkit-Patches/0032 that got mangled in the upstream update

This commit is contained in:
Zach Brown 2014-07-27 14:26:04 -05:00
parent b6b4545b44
commit 595e74227b

View File

@ -1,6 +1,6 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Zach Brown <1254957+zachbr@users.noreply.github.com> From: md_5 <md_5@live.com.au>
Date: Sun, 27 Jul 2014 14:12:17 -0500 Date: Fri, 21 Jun 2013 18:01:29 +1000
Subject: [PATCH] Allow Disabling of Command Logging Subject: [PATCH] Allow Disabling of Command Logging
@ -22,19 +22,14 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
--- a/src/main/java/org/spigotmc/SpigotConfig.java --- a/src/main/java/org/spigotmc/SpigotConfig.java
+++ b/src/main/java/org/spigotmc/SpigotConfig.java +++ b/src/main/java/org/spigotmc/SpigotConfig.java
@@ -0,0 +0,0 @@ public class SpigotConfig @@ -0,0 +0,0 @@ public class SpigotConfig
config.addDefault( path, def );
private static double getDouble(String path, double 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; + public static boolean logCommands;
+ private static void logCommands() + private static void logCommands()
+ { + {
+ logCommands = getBoolean( "commands.log", true ); + logCommands = getBoolean( "commands.log", true );
} + }
} }
-- --