diff options
author | Luck <git@lucko.me> | 2019-07-22 20:27:49 +0100 |
---|---|---|
committer | Luck <git@lucko.me> | 2019-07-22 20:27:49 +0100 |
commit | 9d5aad9413ec8a219549f626db6e33ccca2f5acf (patch) | |
tree | e40cdc2367f4f02388dd2f2a5f60eb8d85bc2037 /spark-bungeecord/src/main/java | |
parent | e9fa0afb91c70de41c4b3ef5b0537b21e2991da4 (diff) | |
download | spark-9d5aad9413ec8a219549f626db6e33ccca2f5acf.tar.gz spark-9d5aad9413ec8a219549f626db6e33ccca2f5acf.tar.bz2 spark-9d5aad9413ec8a219549f626db6e33ccca2f5acf.zip |
cleanup
Diffstat (limited to 'spark-bungeecord/src/main/java')
-rw-r--r-- | spark-bungeecord/src/main/java/me/lucko/spark/bungeecord/SparkBungeeCordPlugin.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spark-bungeecord/src/main/java/me/lucko/spark/bungeecord/SparkBungeeCordPlugin.java b/spark-bungeecord/src/main/java/me/lucko/spark/bungeecord/SparkBungeeCordPlugin.java index 121a678..9becaf1 100644 --- a/spark-bungeecord/src/main/java/me/lucko/spark/bungeecord/SparkBungeeCordPlugin.java +++ b/spark-bungeecord/src/main/java/me/lucko/spark/bungeecord/SparkBungeeCordPlugin.java @@ -20,11 +20,11 @@ package me.lucko.spark.bungeecord; -import me.lucko.spark.common.CommandSender; import me.lucko.spark.common.SparkPlatform; import me.lucko.spark.common.SparkPlugin; import me.lucko.spark.common.sampler.ThreadDumper; import me.lucko.spark.common.sampler.TickCounter; +import net.md_5.bungee.api.CommandSender; import net.md_5.bungee.api.plugin.Command; import net.md_5.bungee.api.plugin.Plugin; import net.md_5.bungee.api.plugin.TabExecutor; @@ -67,8 +67,8 @@ public class SparkBungeeCordPlugin extends Plugin implements SparkPlugin { } @Override - public Set<CommandSender> getSendersWithPermission(String permission) { - List<net.md_5.bungee.api.CommandSender> senders = new LinkedList<>(getProxy().getPlayers()); + public Set<BungeeCordCommandSender> getSendersWithPermission(String permission) { + List<CommandSender> senders = new LinkedList<>(getProxy().getPlayers()); senders.removeIf(sender -> !sender.hasPermission(permission)); senders.add(getProxy().getConsole()); return senders.stream().map(BungeeCordCommandSender::new).collect(Collectors.toSet()); @@ -98,12 +98,12 @@ public class SparkBungeeCordPlugin extends Plugin implements SparkPlugin { } @Override - public void execute(net.md_5.bungee.api.CommandSender sender, String[] args) { + public void execute(CommandSender sender, String[] args) { this.plugin.platform.executeCommand(new BungeeCordCommandSender(sender), args); } @Override - public Iterable<String> onTabComplete(net.md_5.bungee.api.CommandSender sender, String[] args) { + public Iterable<String> onTabComplete(CommandSender sender, String[] args) { return this.plugin.platform.tabCompleteCommand(new BungeeCordCommandSender(sender), args); } } |