mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-05 10:20:53 +01:00
19972e09b8
5a0150f586ed3eb15fe6f1f596d1a5a7d806f0f9 Fix ITEM_BREAK e6a3911057bd94d8bd7021cbb4923fb84fb106d1 Upstream merge d1cdcf8d4c3639f956474f02ed662517cffbe23e Remove old patch 068df64aeee368377e1673667bffc7a6dcf90554 Rebuild all patches
37 lines
1.4 KiB
Diff
37 lines
1.4 KiB
Diff
From 7efe54f5803c0ccec23d7b5da399a23080cd8efc Mon Sep 17 00:00:00 2001
|
|
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
|
|
index c7d4f9f..1160b6e 100644
|
|
--- a/src/main/java/net/minecraft/server/PlayerConnection.java
|
|
+++ b/src/main/java/net/minecraft/server/PlayerConnection.java
|
|
@@ -1012,6 +1012,7 @@ public class PlayerConnection implements PacketListenerPlayIn, IUpdatePlayerList
|
|
org.bukkit.craftbukkit.SpigotTimings.playerCommandTimer.startTiming(); // Spigot
|
|
|
|
// CraftBukkit start - whole method
|
|
+ if ( org.spigotmc.SpigotConfig.logCommands ) // Spigot
|
|
this.c.info(this.player.getName() + " issued server command: " + s);
|
|
|
|
CraftPlayer player = this.getPlayer();
|
|
diff --git a/src/main/java/org/spigotmc/SpigotConfig.java b/src/main/java/org/spigotmc/SpigotConfig.java
|
|
index fdd4fe1..4e7d731 100644
|
|
--- a/src/main/java/org/spigotmc/SpigotConfig.java
|
|
+++ b/src/main/java/org/spigotmc/SpigotConfig.java
|
|
@@ -148,4 +148,10 @@ public class SpigotConfig
|
|
config.addDefault( path, def );
|
|
return config.getDouble( path, config.getDouble( path ) );
|
|
}
|
|
+
|
|
+ public static boolean logCommands;
|
|
+ private static void logCommands()
|
|
+ {
|
|
+ logCommands = getBoolean( "commands.log", true );
|
|
+ }
|
|
}
|
|
--
|
|
2.1.0
|
|
|