2014-03-23 01:06:43 +01:00
|
|
|
From 04234e66e787b65eb2f03b64bf6242a20bc620c2 Mon Sep 17 00:00:00 2001
|
2014-02-09 04:39:15 +01: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
|
2014-03-23 01:06:43 +01:00
|
|
|
index 4c21643..4e4f001 100644
|
2014-02-09 04:39:15 +01:00
|
|
|
--- a/src/main/java/net/minecraft/server/CommandDispatcher.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/CommandDispatcher.java
|
2014-03-23 01:06:43 +01:00
|
|
|
@@ -83,7 +83,7 @@ public class CommandDispatcher extends CommandHandler implements ICommandDispatc
|
2014-02-09 04:39:15 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
- if (icommandlistener != MinecraftServer.getServer()) {
|
|
|
|
+ if (icommandlistener != MinecraftServer.getServer() && !org.spigotmc.SpigotConfig.silentCommandBlocks) { // Spigot
|
|
|
|
MinecraftServer.getServer().sendMessage(chatmessage);
|
|
|
|
}
|
|
|
|
|
|
|
|
diff --git a/src/main/java/org/spigotmc/SpigotConfig.java b/src/main/java/org/spigotmc/SpigotConfig.java
|
2014-02-12 14:48:26 +01:00
|
|
|
index 8da3cc9..7cba69f 100644
|
2014-02-09 04:39:15 +01:00
|
|
|
--- a/src/main/java/org/spigotmc/SpigotConfig.java
|
|
|
|
+++ b/src/main/java/org/spigotmc/SpigotConfig.java
|
2014-02-12 14:48:26 +01:00
|
|
|
@@ -261,4 +261,10 @@ public class SpigotConfig
|
2014-02-09 04:39:15 +01:00
|
|
|
"/skill"
|
|
|
|
} ) );
|
|
|
|
}
|
|
|
|
+
|
|
|
|
+ public static boolean silentCommandBlocks;
|
|
|
|
+ private static void silentCommandBlocks()
|
|
|
|
+ {
|
|
|
|
+ silentCommandBlocks = getBoolean( "commands.silent-commandblock-console", false );
|
|
|
|
+ }
|
|
|
|
}
|
|
|
|
--
|
2014-03-23 01:06:43 +01:00
|
|
|
1.8.5.2.msysgit.0
|
2014-02-09 04:39:15 +01:00
|
|
|
|