mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-02 04:56:50 +01:00
Ignore player selectors if not a Command Block.
This commit is contained in:
parent
776e256ff1
commit
9131f5b550
1 changed files with 6 additions and 0 deletions
|
@ -33,6 +33,12 @@ public class PlayerSelector {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static EntityPlayer[] getPlayers(ICommandListener icommandlistener, String s) {
|
public static EntityPlayer[] getPlayers(ICommandListener icommandlistener, String s) {
|
||||||
|
// CraftBukkit start
|
||||||
|
if (!(icommandlistener instanceof CommandBlockListenerAbstract)) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
// CraftBukkit end
|
||||||
|
|
||||||
Matcher matcher = a.matcher(s);
|
Matcher matcher = a.matcher(s);
|
||||||
|
|
||||||
if (!matcher.matches()) {
|
if (!matcher.matches()) {
|
||||||
|
|
Loading…
Reference in a new issue