1
0
forked from xjboss/KCauldronX
KCauldronX/patches/org/bukkit/command/defaults/TestForCommand.java.patch

20 lines
677 B
Diff
Raw Normal View History

2015-03-22 17:38:04 +00:00
--- ../src-base/minecraft/org/bukkit/command/defaults/TestForCommand.java
+++ ../src-work/minecraft/org/bukkit/command/defaults/TestForCommand.java
@@ -23,4 +23,16 @@
sender.sendMessage(ChatColor.RED + "/testfor is only usable by commandblocks with analog output.");
return true;
}
+
+ // Spigot Start
+ @Override
+ public java.util.List<String> tabComplete(CommandSender sender, String alias, String[] args) throws IllegalArgumentException
+ {
+ if ( args.length == 0 )
+ {
+ return super.tabComplete( sender, alias, args );
+ }
+ return java.util.Collections.emptyList();
+ }
+ // Spigot End
}