Add cross server list tracking and handling

This commit is contained in:
BuildTools committed 2021-03-09 13:06:09 +00:00
1 parent fa85860c22
commit 0e9527ce2a
7 files changed
+170 -12

No files matched your search

@@ -1,5 +1,6 @@
package me.william278.huskhomes2.commands;
import me.william278.huskhomes2.CrossServerListHandler;
import me.william278.huskhomes2.HuskHomes;
import me.william278.huskhomes2.MessageManager;
import me.william278.huskhomes2.integrations.VanishChecker;
@@ -75,7 +76,6 @@ public class TpCommand extends CommandBase {
} else {
MessageManager.sendMessage(p, "error_invalid_syntax", command.getUsage());
}
return;
}
}
@@ -89,6 +89,7 @@ public class TpCommand extends CommandBase {
players.add(p.getName());
}
}
players.addAll(CrossServerListHandler.getOtherServerPlayerList());
}
final List<String> tabCompletions = new ArrayList<>();
StringUtil.copyPartialMatches(args[0], players, tabCompletions);