mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-21 05:44:33 +00:00
13 lines
532 B
Diff
13 lines
532 B
Diff
![]() |
@@ -52,6 +52,11 @@
|
||
|
}
|
||
|
|
||
|
public static List getPlayers(ICommandListener icommandlistener, String s, Class oclass) {
|
||
|
+ // CraftBukkit start - disable playerselections for ICommandListeners other than command blocks
|
||
|
+ if (!(icommandlistener instanceof CommandBlockListenerAbstract)) {
|
||
|
+ return com.google.common.collect.ImmutableList.of();
|
||
|
+ }
|
||
|
+ // CraftBukkit end
|
||
|
Matcher matcher = PlayerSelector.a.matcher(s);
|
||
|
|
||
|
if (matcher.matches() && icommandlistener.a(1, "@")) {
|