| 
									
										
										
										
											2016-03-03 17:04:36 +11:00
										 |  |  | From 715a24423ba7d183831905661704c153508c145f 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
 | 
					
						
							| 
									
										
										
										
											2016-03-03 17:04:36 +11:00
										 |  |  | index 00c3935..37f4f61 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
 | 
					
						
							| 
									
										
										
										
											2016-03-03 17:04:36 +11:00
										 |  |  | @@ -1247,6 +1247,7 @@ public class PlayerConnection implements PacketListenerPlayIn, ITickable {
 | 
					
						
							| 
									
										
										
										
											2015-02-28 11:36:22 +00:00
										 |  |  |     private void handleCommand(String s) { | 
					
						
							| 
									
										
										
										
											2014-05-15 17:05:45 +10:00
										 |  |  |          org.bukkit.craftbukkit.SpigotTimings.playerCommandTimer.startTiming(); // Spigot | 
					
						
							| 
									
										
										
										
											2014-11-26 08:27:08 +11:00
										 |  |  |         // CraftBukkit start - whole method | 
					
						
							|  |  |  | +        if ( org.spigotmc.SpigotConfig.logCommands ) // Spigot
 | 
					
						
							| 
									
										
										
										
											2016-03-01 08:33:06 +11:00
										 |  |  |          this.LOGGER.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
 | 
					
						
							| 
									
										
										
										
											2015-05-25 20:09:58 +01:00
										 |  |  | index dcca493..3999f5b 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
 | 
					
						
							| 
									
										
										
										
											2015-05-25 20:09:58 +01:00
										 |  |  | @@ -149,4 +149,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 );
 | 
					
						
							|  |  |  | +    }
 | 
					
						
							|  |  |  |  } | 
					
						
							|  |  |  | -- 
 | 
					
						
							| 
									
										
										
										
											2016-03-01 08:33:06 +11:00
										 |  |  | 2.5.0 | 
					
						
							| 
									
										
										
										
											2014-04-12 14:18:37 +10:00
										 |  |  | 
 |