mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-02 04:56:50 +01:00
Add /tellraw to the vanilla commands defaults
This commit is contained in:
parent
49ae0093db
commit
0fbde2862d
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue