use of com.viaversion.viaversion.bukkit.commands.BukkitCommandSender in project ViaVersion by ViaVersion.
the class ViaVersionPlugin method getOnlinePlayers.
@Override
public ViaCommandSender[] getOnlinePlayers() {
ViaCommandSender[] array = new ViaCommandSender[Bukkit.getOnlinePlayers().size()];
int i = 0;
for (Player player : Bukkit.getOnlinePlayers()) {
array[i++] = new BukkitCommandSender(player);
}
return array;
}
Aggregations