2014-08-18 17:43:17 +02:00
|
|
|
From 5b1d11e3500775fdcedbb9d4572072355dccaf18 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
|
|
|
|
index 0644276..84bcca1 100644
|
|
|
|
--- a/src/main/java/net/minecraft/server/CommandDispatcher.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/CommandDispatcher.java
|
|
|
|
@@ -83,7 +83,7 @@ public class CommandDispatcher extends CommandHandler implements ICommandDispatc
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
- 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-07-30 10:35:19 +02:00
|
|
|
index ff86680..731f24d 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
|
2014-07-30 10:35:19 +02:00
|
|
|
@@ -289,4 +289,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 );
|
|
|
|
+ }
|
|
|
|
}
|
|
|
|
--
|
|
|
|
1.9.1
|
|
|
|
|