mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +00:00
36 lines
1.0 KiB
Java
36 lines
1.0 KiB
Java
package me.william278.huskhomes2;
|
|
|
|
import java.util.HashMap;
|
|
import java.util.HashSet;
|
|
|
|
public class CrossServerListHandler {
|
|
|
|
// A HashMap mapping all the HuskHomes servers on the Bungee Network
|
|
// (with the same Cluster ID) with their list of players
|
|
/*private static final HashMap<String,HashSet<String>> playerList = new HashMap<>();
|
|
|
|
public static HashSet<String> getOtherServerPlayerList() {
|
|
HashSet<String> players = new HashSet<>();
|
|
for (String server : playerList.keySet()) {
|
|
players.addAll(playerList.get(server));
|
|
}
|
|
return players;
|
|
}*/
|
|
|
|
/*public static void updateHashset(String server, HashSet<String> players) {
|
|
playerList.put(server, players);
|
|
}
|
|
*/
|
|
/*public static void updatePlayerList(Player p) {
|
|
playerList.clear();
|
|
if (p == null) {
|
|
for (Player x : Bukkit.getOnlinePlayers()) {
|
|
p = x;
|
|
}
|
|
}
|
|
if (p != null) {
|
|
PluginMessageHandler.requestPlayerLists(p);
|
|
}
|
|
}*/
|
|
}
|