2014-12-09 09:42:19 +00:00
|
|
|
From a249cf4c53e17ea35efb1cdcdc66c404874d5a3a Mon Sep 17 00:00:00 2001
|
2014-04-12 14:18:37 +10:00
|
|
|
From: md_5 <md_5@live.com.au>
|
|
|
|
Date: Fri, 21 Jun 2013 18:01:29 +1000
|
|
|
|
Subject: [PATCH] Allow Disabling of Command Logging
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/PlayerConnection.java b/src/main/java/net/minecraft/server/PlayerConnection.java
|
2014-12-09 09:42:19 +00:00
|
|
|
index ad5fff2..b8d9857 100644
|
2014-04-12 14:18:37 +10:00
|
|
|
--- a/src/main/java/net/minecraft/server/PlayerConnection.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/PlayerConnection.java
|
2014-12-09 09:42:19 +00:00
|
|
|
@@ -1037,6 +1037,7 @@ public class PlayerConnection implements PacketListenerPlayIn, IUpdatePlayerList
|
2014-05-15 17:05:45 +10:00
|
|
|
org.bukkit.craftbukkit.SpigotTimings.playerCommandTimer.startTiming(); // Spigot
|
2014-07-07 18:59:02 -04:00
|
|
|
|
2014-11-26 08:27:08 +11:00
|
|
|
// CraftBukkit start - whole method
|
|
|
|
+ if ( org.spigotmc.SpigotConfig.logCommands ) // Spigot
|
|
|
|
this.c.info(this.player.getName() + " issued server command: " + s);
|
2014-05-15 17:05:45 +10:00
|
|
|
|
|
|
|
CraftPlayer player = this.getPlayer();
|
2014-04-12 14:18:37 +10:00
|
|
|
diff --git a/src/main/java/org/spigotmc/SpigotConfig.java b/src/main/java/org/spigotmc/SpigotConfig.java
|
2014-09-21 10:06:46 +10:00
|
|
|
index fdd4fe1..4e7d731 100644
|
2014-04-12 14:18:37 +10:00
|
|
|
--- a/src/main/java/org/spigotmc/SpigotConfig.java
|
|
|
|
+++ b/src/main/java/org/spigotmc/SpigotConfig.java
|
2014-07-26 18:03:45 +01:00
|
|
|
@@ -148,4 +148,10 @@ public class SpigotConfig
|
2014-04-12 14:18:37 +10:00
|
|
|
config.addDefault( path, def );
|
2014-07-26 18:03:45 +01:00
|
|
|
return config.getDouble( path, config.getDouble( path ) );
|
2014-04-12 14:18:37 +10:00
|
|
|
}
|
|
|
|
+
|
|
|
|
+ public static boolean logCommands;
|
|
|
|
+ private static void logCommands()
|
|
|
|
+ {
|
|
|
|
+ logCommands = getBoolean( "commands.log", true );
|
|
|
|
+ }
|
|
|
|
}
|
|
|
|
--
|
2014-11-26 08:27:08 +11:00
|
|
|
2.1.0
|
2014-04-12 14:18:37 +10:00
|
|
|
|