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 398f6983bd
commit 6d67f53a26
1 changed files with 9 additions and 15 deletions

View File

@ -1,6 +1,6 @@
From b60ff81c08ad243e95bb23cf22bf03e73e630068 Mon Sep 17 00:00:00 2001
From: Zach Brown <Zbob750@live.com>
Date: Sun, 27 Jul 2014 14:12:17 -0500
From abe67ad73f7f5c0d156def0bec08583d78a823d3 Mon Sep 17 00:00:00 2001
From: md_5 <md_5@live.com.au>
Date: Fri, 21 Jun 2013 18:01:29 +1000
Subject: [PATCH] Allow Disabling of Command Logging
@ -18,25 +18,19 @@ index 9596da2..3a24fcd 100644
CraftPlayer player = this.getPlayer();
diff --git a/src/main/java/org/spigotmc/SpigotConfig.java b/src/main/java/org/spigotmc/SpigotConfig.java
index 6dfa8b0..6ea100e 100644
index 6dfa8b0..c9e6dc5 100644
--- a/src/main/java/org/spigotmc/SpigotConfig.java
+++ b/src/main/java/org/spigotmc/SpigotConfig.java
@@ -145,7 +145,13 @@ 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));
+ }
@@ -148,4 +148,10 @@ public class SpigotConfig
config.addDefault( path, def );
return config.getDouble( path, config.getDouble( path ) );
}
+
+ public static boolean logCommands;
+ private static void logCommands()
+ {
+ logCommands = getBoolean( "commands.log", true );
}
+ }
}
--
1.9.1