aboutsummaryrefslogtreecommitdiff
path: root/spark-fabric/src
diff options
context:
space:
mode:
Diffstat (limited to 'spark-fabric/src')
-rw-r--r--spark-fabric/src/main/java/me/lucko/spark/fabric/plugin/FabricClientSparkPlugin.java2
-rw-r--r--spark-fabric/src/main/java/me/lucko/spark/fabric/plugin/FabricServerSparkPlugin.java5
2 files changed, 3 insertions, 4 deletions
diff --git a/spark-fabric/src/main/java/me/lucko/spark/fabric/plugin/FabricClientSparkPlugin.java b/spark-fabric/src/main/java/me/lucko/spark/fabric/plugin/FabricClientSparkPlugin.java
index 1bc6707..ae8f3e0 100644
--- a/spark-fabric/src/main/java/me/lucko/spark/fabric/plugin/FabricClientSparkPlugin.java
+++ b/spark-fabric/src/main/java/me/lucko/spark/fabric/plugin/FabricClientSparkPlugin.java
@@ -139,7 +139,7 @@ public class FabricClientSparkPlugin extends FabricSparkPlugin implements Sugges
}
@Override
- public Stream<FabricCommandSender> getSendersWithPermission(String permission) {
+ public Stream<FabricCommandSender> getCommandSenders() {
return Stream.of(new FabricCommandSender(this.minecraft.player, this));
}
diff --git a/spark-fabric/src/main/java/me/lucko/spark/fabric/plugin/FabricServerSparkPlugin.java b/spark-fabric/src/main/java/me/lucko/spark/fabric/plugin/FabricServerSparkPlugin.java
index 08edc82..9244b57 100644
--- a/spark-fabric/src/main/java/me/lucko/spark/fabric/plugin/FabricServerSparkPlugin.java
+++ b/spark-fabric/src/main/java/me/lucko/spark/fabric/plugin/FabricServerSparkPlugin.java
@@ -120,10 +120,9 @@ public class FabricServerSparkPlugin extends FabricSparkPlugin implements Comman
}
@Override
- public Stream<FabricCommandSender> getSendersWithPermission(String permission) {
+ public Stream<FabricCommandSender> getCommandSenders() {
return Stream.concat(
- this.server.getPlayerManager().getPlayerList().stream()
- .filter(player -> hasPermission(player, permission)),
+ this.server.getPlayerManager().getPlayerList().stream(),
Stream.of(this.server)
).map(sender -> new FabricCommandSender(sender, this));
}