aboutsummaryrefslogtreecommitdiff
path: root/spark-velocity/src/main/java/me/lucko/spark/velocity
diff options
context:
space:
mode:
authorLuck <git@lucko.me>2021-03-11 13:04:09 +0000
committerLuck <git@lucko.me>2021-03-11 13:04:09 +0000
commit1abff42884564d85c0895461b7e60aa9dbbd28d0 (patch)
treed9d6ce721b33214b1abff4425984ccee8b690607 /spark-velocity/src/main/java/me/lucko/spark/velocity
parent4e765fe0c4b746c3527e670ce9ebaaf553bd8479 (diff)
downloadspark-1abff42884564d85c0895461b7e60aa9dbbd28d0.tar.gz
spark-1abff42884564d85c0895461b7e60aa9dbbd28d0.tar.bz2
spark-1abff42884564d85c0895461b7e60aa9dbbd28d0.zip
Fix command broadcast permission checks, other misc tidying
Diffstat (limited to 'spark-velocity/src/main/java/me/lucko/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);
}