2014-06-22 11:25:10 +02:00
|
|
|
From 8aa1c723981f397768a3f13cbf6aa5a341798bb7 Mon Sep 17 00:00:00 2001
|
2014-04-12 06:18:37 +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
|
2014-04-12 06:27:04 +02:00
|
|
|
index 2676e9e..caced26 100644
|
2014-04-12 06:18:37 +02:00
|
|
|
--- 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-06-22 11:25:10 +02:00
|
|
|
index 8fb3a82..8599688 100644
|
2014-04-12 06:18:37 +02:00
|
|
|
--- a/src/main/java/org/spigotmc/SpigotConfig.java
|
|
|
|
+++ b/src/main/java/org/spigotmc/SpigotConfig.java
|
|
|
|
@@ -272,4 +272,10 @@ public class SpigotConfig
|
|
|
|
"/skill"
|
|
|
|
} ) );
|
|
|
|
}
|
|
|
|
+
|
|
|
|
+ public static boolean silentCommandBlocks;
|
|
|
|
+ private static void silentCommandBlocks()
|
|
|
|
+ {
|
|
|
|
+ silentCommandBlocks = getBoolean( "commands.silent-commandblock-console", false );
|
|
|
|
+ }
|
|
|
|
}
|
|
|
|
--
|
2014-04-19 01:15:23 +02:00
|
|
|
1.9.1
|
2014-04-12 06:18:37 +02:00
|
|
|
|