2014-04-24 08:27:12 +02:00
|
|
|
From 967f8f3f3602a2218d7f0e0430360c1f1b2379bc Mon Sep 17 00:00:00 2001
|
2014-04-12 06:18:37 +02:00
|
|
|
From: Thinkofdeath <thethinkofdeath@gmail.com>
|
|
|
|
Date: Sun, 23 Mar 2014 01:12:10 +0000
|
|
|
|
Subject: [PATCH] Check for manually prefixed commands or commands that don't
|
|
|
|
need a prefix for calling vanilla commands with command blocks
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/CommandBlockListenerAbstract.java b/src/main/java/net/minecraft/server/CommandBlockListenerAbstract.java
|
|
|
|
index da235e5..0b04e94 100644
|
|
|
|
--- a/src/main/java/net/minecraft/server/CommandBlockListenerAbstract.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/CommandBlockListenerAbstract.java
|
|
|
|
@@ -110,6 +110,14 @@ public abstract class CommandBlockListenerAbstract implements ICommandListener {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
+ // Spigot start - check for manually prefixed command or commands that don't need a prefix
|
|
|
|
+ org.bukkit.command.Command commandBlockCommand = commandMap.getCommand(args[0]);
|
|
|
|
+ if (commandBlockCommand instanceof VanillaCommandWrapper) {
|
|
|
|
+ this.b = ((VanillaCommandWrapper) commandBlockCommand).dispatchVanillaCommandBlock(this, this.e);
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ // Spigot end
|
|
|
|
+
|
|
|
|
// Make sure this is a valid command
|
|
|
|
if (commandMap.getCommand(args[0]) == null) {
|
|
|
|
this.b = 0;
|
|
|
|
--
|
2014-04-19 01:15:23 +02:00
|
|
|
1.9.1
|
2014-04-12 06:18:37 +02:00
|
|
|
|