mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-26 09:53:51 -07:00
Ignore player selectors if not a Command Block.
This commit is contained in:
@@ -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()) {
|
||||
|
Reference in New Issue
Block a user