mirror of
https://github.com/ME1312/SubServers-2.git
synced 2024-11-22 02:08:27 +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() {
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user