diff options
author | Luck <git@lucko.me> | 2021-03-11 13:04:09 +0000 |
---|---|---|
committer | Luck <git@lucko.me> | 2021-03-11 13:04:09 +0000 |
commit | 1abff42884564d85c0895461b7e60aa9dbbd28d0 (patch) | |
tree | d9d6ce721b33214b1abff4425984ccee8b690607 /spark-bungeecord | |
parent | 4e765fe0c4b746c3527e670ce9ebaaf553bd8479 (diff) | |
download | spark-1abff42884564d85c0895461b7e60aa9dbbd28d0.tar.gz spark-1abff42884564d85c0895461b7e60aa9dbbd28d0.tar.bz2 spark-1abff42884564d85c0895461b7e60aa9dbbd28d0.zip |
Fix command broadcast permission checks, other misc tidying
Diffstat (limited to 'spark-bungeecord')
-rw-r--r-- | spark-bungeecord/src/main/java/me/lucko/spark/bungeecord/BungeeCordSparkPlugin.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spark-bungeecord/src/main/java/me/lucko/spark/bungeecord/BungeeCordSparkPlugin.java b/spark-bungeecord/src/main/java/me/lucko/spark/bungeecord/BungeeCordSparkPlugin.java index c3be5f4..53760a4 100644 --- a/spark-bungeecord/src/main/java/me/lucko/spark/bungeecord/BungeeCordSparkPlugin.java +++ b/spark-bungeecord/src/main/java/me/lucko/spark/bungeecord/BungeeCordSparkPlugin.java @@ -65,9 +65,9 @@ public class BungeeCordSparkPlugin extends Plugin implements SparkPlugin { } @Override - public Stream<BungeeCordCommandSender> getSendersWithPermission(String permission) { + public Stream<BungeeCordCommandSender> getCommandSenders() { return Stream.concat( - getProxy().getPlayers().stream().filter(player -> player.hasPermission(permission)), + getProxy().getPlayers().stream(), Stream.of(getProxy().getConsole()) ).map(sender -> new BungeeCordCommandSender(sender, this.audienceFactory)); } |