From 9d5aad9413ec8a219549f626db6e33ccca2f5acf Mon Sep 17 00:00:00 2001 From: Luck Date: Mon, 22 Jul 2019 20:27:49 +0100 Subject: cleanup --- .../java/me/lucko/spark/bungeecord/SparkBungeeCordPlugin.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'spark-bungeecord/src/main/java/me/lucko') 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 getSendersWithPermission(String permission) { - List senders = new LinkedList<>(getProxy().getPlayers()); + public Set getSendersWithPermission(String permission) { + List 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 onTabComplete(net.md_5.bungee.api.CommandSender sender, String[] args) { + public Iterable onTabComplete(CommandSender sender, String[] args) { return this.plugin.platform.tabCompleteCommand(new BungeeCordCommandSender(sender), args); } } -- cgit