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