summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/net/minecraft/server/PlayerSelector.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/PlayerSelector.java b/src/main/java/net/minecraft/server/PlayerSelector.java
index d9807771..4705769d 100644
--- a/src/main/java/net/minecraft/server/PlayerSelector.java
+++ b/src/main/java/net/minecraft/server/PlayerSelector.java
@@ -33,6 +33,12 @@ public class PlayerSelector {
}
public static EntityPlayer[] getPlayers(ICommandListener icommandlistener, String s) {
+ // CraftBukkit start
+ if (!(icommandlistener instanceof CommandBlockListenerAbstract)) {
+ return null;
+ }
+ // CraftBukkit end
+
Matcher matcher = a.matcher(s);
if (!matcher.matches()) {