use of com.viaversion.viaversion.bungee.commands.BungeeCommandSender in project ViaVersion by ViaVersion.
the class BungeePlugin method getOnlinePlayers.
@Override
public ViaCommandSender[] getOnlinePlayers() {
Collection<ProxiedPlayer> players = getProxy().getPlayers();
ViaCommandSender[] array = new ViaCommandSender[players.size()];
int i = 0;
for (ProxiedPlayer player : players) {
array[i++] = new BungeeCommandSender(player);
}
return array;
}
Aggregations