mirror of
https://github.com/ME1312/SubServers-2.git
synced 2024-11-22 10:15:52 +01:00
Fix host.getRemotePlayers()
This commit is contained in:
parent
4ea69298a3
commit
80da5f7b27
@ -163,8 +163,8 @@ public class Host {
|
|||||||
*/
|
*/
|
||||||
public Collection<Pair<String, UUID>> getRemotePlayers() {
|
public Collection<Pair<String, UUID>> getRemotePlayers() {
|
||||||
List<Pair<String, UUID>> players = new ArrayList<Pair<String, UUID>>();
|
List<Pair<String, UUID>> players = new ArrayList<Pair<String, UUID>>();
|
||||||
for (String id : raw.getMap("players").getKeys()) {
|
for (SubServer server : getSubServers().values()) {
|
||||||
players.add(new ContainedPair<String, UUID>(raw.getMap("players").getRawString(id), UUID.fromString(id)));
|
players.addAll(server.getRemotePlayers());
|
||||||
}
|
}
|
||||||
return players;
|
return players;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user