Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 20:40:08 +01:00
Ignore player selectors if not a Command Block.
Dieser Commit ist enthalten in:
Ursprung
776e256ff1
Commit
9131f5b550
@ -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()) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren