2015-07-23 20:43:27 +00:00
|
|
|
From 1b32b4afefa170a63a9d208a94ed43f6f3c6c0bb Mon Sep 17 00:00:00 2001
|
2014-07-27 19:26:04 +00:00
|
|
|
From: md_5 <md_5@live.com.au>
|
|
|
|
Date: Fri, 21 Jun 2013 18:01:29 +1000
|
2014-07-21 20:46:54 +00:00
|
|
|
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
|
2015-07-23 20:43:27 +00:00
|
|
|
index a7ca537..1fca956 100644
|
2014-07-21 20:46:54 +00:00
|
|
|
--- a/src/main/java/net/minecraft/server/PlayerConnection.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/PlayerConnection.java
|
2015-07-23 20:43:27 +00:00
|
|
|
@@ -1079,6 +1079,7 @@ public class PlayerConnection implements PacketListenerPlayIn, IUpdatePlayerList
|
2015-02-28 11:36:22 +00:00
|
|
|
private void handleCommand(String s) {
|
2014-07-21 20:46:54 +00:00
|
|
|
org.bukkit.craftbukkit.SpigotTimings.playerCommandTimer.startTiming(); // Spigot
|
2014-11-28 01:17:45 +00:00
|
|
|
// CraftBukkit start - whole method
|
|
|
|
+ if ( org.spigotmc.SpigotConfig.logCommands ) // Spigot
|
|
|
|
this.c.info(this.player.getName() + " issued server command: " + s);
|
2014-07-21 20:46:54 +00:00
|
|
|
|
|
|
|
CraftPlayer player = this.getPlayer();
|
|
|
|
diff --git a/src/main/java/org/spigotmc/SpigotConfig.java b/src/main/java/org/spigotmc/SpigotConfig.java
|
2015-05-25 19:09:58 +00:00
|
|
|
index dcca493..3999f5b 100644
|
2014-07-21 20:46:54 +00:00
|
|
|
--- a/src/main/java/org/spigotmc/SpigotConfig.java
|
|
|
|
+++ b/src/main/java/org/spigotmc/SpigotConfig.java
|
2015-05-25 19:09:58 +00:00
|
|
|
@@ -149,4 +149,10 @@ public class SpigotConfig
|
2014-07-27 19:26:04 +00:00
|
|
|
config.addDefault( path, def );
|
|
|
|
return config.getDouble( path, config.getDouble( path ) );
|
|
|
|
}
|
2014-07-21 20:46:54 +00:00
|
|
|
+
|
|
|
|
+ public static boolean logCommands;
|
|
|
|
+ private static void logCommands()
|
|
|
|
+ {
|
|
|
|
+ logCommands = getBoolean( "commands.log", true );
|
2014-07-27 19:26:04 +00:00
|
|
|
+ }
|
2014-07-21 20:46:54 +00:00
|
|
|
}
|
|
|
|
--
|
2015-07-23 20:43:27 +00:00
|
|
|
2.1.4
|
2014-07-30 08:35:19 +00:00
|
|
|
|