mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 14:38:52 +00:00
Re implement tab completion list (Close #47)
This commit is contained in:
1 parent
1601ce6949
commit
4cc19cb71b
14 files changed
+123
-47
No files matched your search
@@ -95,14 +95,7 @@ public class TpCommand extends CommandBase {
|
||||
public List<String> onTabComplete(CommandSender sender, Command command, String alias, String[] args) {
|
||||
List<String> players = new ArrayList<>();
|
||||
if (args.length == 0 || args.length == 1) {
|
||||
for (Player p : Bukkit.getOnlinePlayers()) {
|
||||
if (!VanishChecker.isVanished(p) && !(p.getName().equals(sender.getName()))) {
|
||||
players.add(p.getName());
|
||||
}
|
||||
}
|
||||
if (HuskHomes.getSettings().doBungee() & HuskHomes.getSettings().doCrossServerTabCompletion()) {
|
||||
//players.addAll(CrossServerListHandler.getOtherServerPlayerList());
|
||||
}
|
||||
players.addAll(HuskHomes.getPlayerList().getPlayers());
|
||||
}
|
||||
players.remove(sender.getName());
|
||||
final List<String> tabCompletions = new ArrayList<>();
|
||||
|
||||
Reference in new issue
Block a user