13
0
geforkt von Mirrors/Paper

Add /tellraw to the vanilla commands defaults

Dieser Commit ist enthalten in:
Thinkofdeath 2014-01-18 13:21:13 +00:00
Ursprung 49ae0093db
Commit 0fbde2862d

Datei anzeigen

@ -1,4 +1,4 @@
From ef1c785158ebcb31690699805174834ec2186f6a Mon Sep 17 00:00:00 2001
From e9731cbc6edf8f3d913c9cd54e87da240ccb67cf Mon Sep 17 00:00:00 2001
From: Thinkofdeath <thethinkofdeath@gmail.com>
Date: Wed, 18 Dec 2013 10:32:15 +1100
Subject: [PATCH] Add VanillaCommand Wrapper to Support New Commands
@ -76,7 +76,7 @@ index 0ac8f52..fb346f6 100644
public List<String> tabCompleteChat(Player player, String message) {
diff --git a/src/main/java/org/spigotmc/SpigotConfig.java b/src/main/java/org/spigotmc/SpigotConfig.java
index c4a5488..1befcb9 100644
index c4a5488..b3f2647 100644
--- a/src/main/java/org/spigotmc/SpigotConfig.java
+++ b/src/main/java/org/spigotmc/SpigotConfig.java
@@ -6,6 +6,7 @@ import java.io.IOException;
@ -106,7 +106,7 @@ index c4a5488..1befcb9 100644
+ set( "commands.replace-commands", config.getStringList( "replace-commands" ) );
+ config.set( "replace-commands", null );
+ }
+ for ( String command : (List<String>) getList( "commands.replace-commands", Arrays.asList( "setblock", "summon", "testforblock" ) ) )
+ for ( String command : (List<String>) getList( "commands.replace-commands", Arrays.asList( "setblock", "summon", "testforblock", "tellraw" ) ) )
+ {
+ SimpleCommandMap.removeFallback( command );
+ VanillaCommandWrapper.allowedCommands.add( command );
@ -314,5 +314,5 @@ index 0000000..a6c76cc
+ }
+}
--
1.8.3.2
1.8.4.msysgit.0