You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add a method for backwards compatability with unmapped code.
* Convert all getOnlinePlayers() calls to use this method, part of the IEssentials interface
* Add a new method getOnlineUsers() Ljava/lang/Iterable;
* Convert appropriate calls to use this method
* Update Bukkit to #1945
* Update CraftBukkit to #3103
@@ -803,7 +821,7 @@ private int broadcastMessage(final IUser sender, final String permission, final
803
821
}
804
822
}
805
823
806
-
returnplayers.length;
824
+
returnplayers.size();
807
825
}
808
826
809
827
@Override
@@ -890,6 +908,43 @@ public List<String> getVanishedPlayers()
890
908
returnvanishedPlayers;
891
909
}
892
910
911
+
@Override
912
+
publicCollection<Player> getOnlinePlayers()
913
+
{
914
+
try
915
+
{
916
+
return (Collection<Player>)getServer().getOnlinePlayers(); // Needed for sanity here, the Bukkit API is a bit broken in the sense it only allows subclasses of Player to this list
0 commit comments