aboutsummaryrefslogtreecommitdiff
path: root/spark-bungeecord
diff options
context:
space:
mode:
Diffstat (limited to 'spark-bungeecord')
-rw-r--r--spark-bungeecord/src/main/java/me/lucko/spark/bungeecord/BungeeCordSparkPlugin.java4
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));
}