2015-07-27 14:20:54 +02:00
|
|
|
From bece1f16978cceaa526991d889e53f625315efdb Mon Sep 17 00:00:00 2001
|
2014-07-21 22:46:54 +02: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/CommandDispatcher.java b/src/main/java/net/minecraft/server/CommandDispatcher.java
|
2015-05-09 22:23:26 +02:00
|
|
|
index 81289b7..fc52287 100644
|
2014-07-21 22:46:54 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/CommandDispatcher.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/CommandDispatcher.java
|
2015-05-09 22:23:26 +02:00
|
|
|
@@ -100,7 +100,7 @@ public class CommandDispatcher extends CommandHandler implements ICommandDispatc
|
2014-07-21 22:46:54 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-11-28 02:17:45 +01:00
|
|
|
- if (icommandlistener != minecraftserver && minecraftserver.worldServer[0].getGameRules().getBoolean("logAdminCommands")) {
|
|
|
|
+ if (icommandlistener != minecraftserver && minecraftserver.worldServer[0].getGameRules().getBoolean("logAdminCommands") && !org.spigotmc.SpigotConfig.silentCommandBlocks) { // Spigot
|
|
|
|
minecraftserver.sendMessage(chatmessage);
|
2014-07-21 22:46:54 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
diff --git a/src/main/java/org/spigotmc/SpigotConfig.java b/src/main/java/org/spigotmc/SpigotConfig.java
|
2015-05-25 21:09:58 +02:00
|
|
|
index a0a59bb..039777a 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
|
2015-05-25 21:09:58 +02:00
|
|
|
@@ -290,4 +290,10 @@ public class SpigotConfig
|
2014-07-21 22:46:54 +02:00
|
|
|
"/skill"
|
|
|
|
} ) );
|
|
|
|
}
|
|
|
|
+
|
|
|
|
+ public static boolean silentCommandBlocks;
|
|
|
|
+ private static void silentCommandBlocks()
|
|
|
|
+ {
|
|
|
|
+ silentCommandBlocks = getBoolean( "commands.silent-commandblock-console", false );
|
|
|
|
+ }
|
|
|
|
}
|
|
|
|
--
|
2015-06-01 11:22:52 +02:00
|
|
|
2.1.4
|
2014-07-21 22:46:54 +02:00
|
|
|
|