use of com.viaversion.viaversion.sponge.commands.SpongePlayer in project ViaVersion by ViaVersion.
the class SpongePlugin method getOnlinePlayers.
@Override
public ViaCommandSender[] getOnlinePlayers() {
Collection<ServerPlayer> players = game.server().onlinePlayers();
ViaCommandSender[] array = new ViaCommandSender[players.size()];
int i = 0;
for (ServerPlayer player : players) {
array[i++] = new SpongePlayer(player);
}
return array;
}
Aggregations