aboutsummaryrefslogtreecommitdiff
path: root/spark-velocity
diff options
context:
space:
mode:
Diffstat (limited to 'spark-velocity')
-rw-r--r--spark-velocity/src/main/java/me/lucko/spark/velocity/VelocitySparkPlugin.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/spark-velocity/src/main/java/me/lucko/spark/velocity/VelocitySparkPlugin.java b/spark-velocity/src/main/java/me/lucko/spark/velocity/VelocitySparkPlugin.java
index b9e492b..44e6652 100644
--- a/spark-velocity/src/main/java/me/lucko/spark/velocity/VelocitySparkPlugin.java
+++ b/spark-velocity/src/main/java/me/lucko/spark/velocity/VelocitySparkPlugin.java
@@ -99,9 +99,9 @@ public class VelocitySparkPlugin implements SparkPlugin, SimpleCommand {
}
@Override
- public Stream<VelocityCommandSender> getSendersWithPermission(String permission) {
+ public Stream<VelocityCommandSender> getCommandSenders() {
return Stream.concat(
- this.proxy.getAllPlayers().stream().filter(player -> player.hasPermission(permission)),
+ this.proxy.getAllPlayers().stream(),
Stream.of(this.proxy.getConsoleCommandSource())
).map(VelocityCommandSender::new);
}