Commits

md_5 authored 7129aebca83
Rebuild patches
No tags

CraftBukkit-Patches/0023-Allow-Disabling-of-Command-Logging.patch

Renamed
1 -From 813abb616c28c067812707e2ac68b3c317790aaf Mon Sep 17 00:00:00 2001
1 +From abec9260050829573bc5fe159aece60d2bc80b14 Mon Sep 17 00:00:00 2001
2 2 From: md_5 <md_5@live.com.au>
3 3 Date: Fri, 21 Jun 2013 18:01:29 +1000
4 4 Subject: [PATCH] Allow Disabling of Command Logging
5 5
6 6
7 7 diff --git a/src/main/java/net/minecraft/server/PlayerConnection.java b/src/main/java/net/minecraft/server/PlayerConnection.java
8 -index 24cc25f0..3d64514e 100644
8 +index 24cc25f08..3d64514eb 100644
9 9 --- a/src/main/java/net/minecraft/server/PlayerConnection.java
10 10 +++ b/src/main/java/net/minecraft/server/PlayerConnection.java
11 11 @@ -1324,6 +1324,7 @@ public class PlayerConnection implements PacketListenerPlayIn, ITickable {
12 12 private void handleCommand(String s) {
13 13 org.bukkit.craftbukkit.SpigotTimings.playerCommandTimer.startTiming(); // Spigot
14 14 // CraftBukkit start - whole method
15 15 + if ( org.spigotmc.SpigotConfig.logCommands ) // Spigot
16 16 this.LOGGER.info(this.player.getName() + " issued server command: " + s);
17 17
18 18 CraftPlayer player = this.getPlayer();
19 19 diff --git a/src/main/java/org/spigotmc/SpigotConfig.java b/src/main/java/org/spigotmc/SpigotConfig.java
20 -index dd02aefc..45e908ed 100644
20 +index dd02aefc7..45e908ed4 100644
21 21 --- a/src/main/java/org/spigotmc/SpigotConfig.java
22 22 +++ b/src/main/java/org/spigotmc/SpigotConfig.java
23 23 @@ -150,4 +150,10 @@ public class SpigotConfig
24 24 config.addDefault( path, def );
25 25 return config.getDouble( path, config.getDouble( path ) );
26 26 }
27 27 +
28 28 + public static boolean logCommands;
29 29 + private static void logCommands()
30 30 + {

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut