You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
823 B
25 lines
823 B
10 years ago
|
--- ../src-base/minecraft/net/minecraft/command/PlayerSelector.java
|
||
|
+++ ../src-work/minecraft/net/minecraft/command/PlayerSelector.java
|
||
|
@@ -7,6 +7,7 @@
|
||
|
import java.util.Map;
|
||
|
import java.util.regex.Matcher;
|
||
|
import java.util.regex.Pattern;
|
||
|
+import net.minecraft.command.server.CommandBlockLogic;
|
||
|
import net.minecraft.entity.player.EntityPlayerMP;
|
||
|
import net.minecraft.server.MinecraftServer;
|
||
|
import net.minecraft.util.ChunkCoordinates;
|
||
|
@@ -51,6 +52,13 @@
|
||
|
|
||
|
public static EntityPlayerMP[] matchPlayers(ICommandSender p_82380_0_, String p_82380_1_)
|
||
|
{
|
||
|
+ // CraftBukkit start
|
||
|
+ if (!(p_82380_0_ instanceof CommandBlockLogic))
|
||
|
+ {
|
||
|
+ return null;
|
||
|
+ }
|
||
|
+
|
||
|
+ // CraftBukkit end
|
||
|
Matcher matcher = tokenPattern.matcher(p_82380_1_);
|
||
|
|
||
|
if (matcher.matches())
|