From 1abff42884564d85c0895461b7e60aa9dbbd28d0 Mon Sep 17 00:00:00 2001 From: Luck Date: Thu, 11 Mar 2021 13:04:09 +0000 Subject: Fix command broadcast permission checks, other misc tidying --- .../src/main/java/me/lucko/spark/velocity/VelocitySparkPlugin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spark-velocity/src/main/java/me/lucko/spark/velocity') 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 getSendersWithPermission(String permission) { + public Stream 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); } -- cgit