2018-07-16 20:30:51 +10:00
|
|
|
From a1b24d052855c94fd73aa6a80b278ac8a0bed180 Mon Sep 17 00:00:00 2001
|
2018-07-15 10:00:00 +10:00
|
|
|
From: md_5 <git@md-5.net>
|
|
|
|
Date: Sun, 9 Feb 2014 14:39:01 +1100
|
|
|
|
Subject: [PATCH] Add Option to Silence CommandBlock Console
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/CommandListenerWrapper.java b/src/main/java/net/minecraft/server/CommandListenerWrapper.java
|
2018-07-16 20:30:51 +10:00
|
|
|
index 44c20ac4..2e1ea823 100644
|
2018-07-15 10:00:00 +10:00
|
|
|
--- a/src/main/java/net/minecraft/server/CommandListenerWrapper.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/CommandListenerWrapper.java
|
|
|
|
@@ -197,7 +197,7 @@ public class CommandListenerWrapper implements ICompletionProvider {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
- if (this.base != this.i && this.i.aQ().getBoolean("logAdminCommands")) {
|
|
|
|
+ if (this.base != this.i && this.i.aQ().getBoolean("logAdminCommands") && !org.spigotmc.SpigotConfig.silentCommandBlocks) { // Spigot
|
|
|
|
this.i.sendMessage(ichatbasecomponent1);
|
|
|
|
}
|
|
|
|
|
|
|
|
diff --git a/src/main/java/org/spigotmc/SpigotConfig.java b/src/main/java/org/spigotmc/SpigotConfig.java
|
2018-07-16 20:30:51 +10:00
|
|
|
index efd39196..bf2aa1fa 100644
|
2018-07-15 10:00:00 +10:00
|
|
|
--- a/src/main/java/org/spigotmc/SpigotConfig.java
|
|
|
|
+++ b/src/main/java/org/spigotmc/SpigotConfig.java
|
2018-07-16 20:30:51 +10:00
|
|
|
@@ -294,4 +294,10 @@ public class SpigotConfig
|
2018-07-15 10:00:00 +10:00
|
|
|
"/skill"
|
|
|
|
} ) );
|
|
|
|
}
|
|
|
|
+
|
|
|
|
+ public static boolean silentCommandBlocks;
|
|
|
|
+ private static void silentCommandBlocks()
|
|
|
|
+ {
|
|
|
|
+ silentCommandBlocks = getBoolean( "commands.silent-commandblock-console", false );
|
|
|
|
+ }
|
|
|
|
}
|
|
|
|
--
|
|
|
|
2.17.1
|
|
|
|
|