Fix host.getRemotePlayers()

This commit is contained in:
ME1312 2020-11-20 12:14:43 -05:00
parent 4ea69298a3
commit 80da5f7b27
No known key found for this signature in database
GPG Key ID: FEFFE2F698E88FA8

View File

@ -163,8 +163,8 @@ public class Host {
*/
public Collection<Pair<String, UUID>> getRemotePlayers() {
List<Pair<String, UUID>> players = new ArrayList<Pair<String, UUID>>();
for (String id : raw.getMap("players").getKeys()) {
players.add(new ContainedPair<String, UUID>(raw.getMap("players").getRawString(id), UUID.fromString(id)));
for (SubServer server : getSubServers().values()) {
players.addAll(server.getRemotePlayers());
}
return players;
}