aboutsummaryrefslogtreecommitdiff
path: root/spark-sponge
diff options
context:
space:
mode:
Diffstat (limited to 'spark-sponge')
-rw-r--r--spark-sponge/src/main/java/me/lucko/spark/sponge/SpongeSparkPlugin.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/spark-sponge/src/main/java/me/lucko/spark/sponge/SpongeSparkPlugin.java b/spark-sponge/src/main/java/me/lucko/spark/sponge/SpongeSparkPlugin.java
index 055f1f4..38af806 100644
--- a/spark-sponge/src/main/java/me/lucko/spark/sponge/SpongeSparkPlugin.java
+++ b/spark-sponge/src/main/java/me/lucko/spark/sponge/SpongeSparkPlugin.java
@@ -109,9 +109,9 @@ public class SpongeSparkPlugin implements SparkPlugin {
}
@Override
- public Stream<SpongeCommandSender> getSendersWithPermission(String permission) {
+ public Stream<SpongeCommandSender> getCommandSenders() {
return Stream.concat(
- this.game.getServer().getOnlinePlayers().stream().filter(player -> player.hasPermission(permission)),
+ this.game.getServer().getOnlinePlayers().stream(),
Stream.of(this.game.getServer().getConsole())
).map(source -> new SpongeCommandSender(source, this.audienceFactory));
}
@@ -156,7 +156,7 @@ public class SpongeSparkPlugin implements SparkPlugin {
@Override
public boolean testPermission(CommandSource source) {
- return source.hasPermission("spark");
+ return this.plugin.platform.hasPermissionForAnyCommand(new SpongeCommandSender(source, this.plugin.audienceFactory));
}
@Override