Merge pull request #16 from Scyntrus/1.6.x

Re added get function with Player parameter for PlayerEntityCollection
This commit is contained in:
Trent 2014-06-17 02:22:22 -05:00
commit a47caa4ff6
1 changed files with 5 additions and 0 deletions

View File

@ -29,6 +29,11 @@ public abstract class PlayerEntityCollection<E extends Entity> extends EntityCol
return this.get(player.getUniqueId().toString());
}
public E get(Player player)
{
return this.get(player.getUniqueId().toString());
}
public Set<E> getOnline() {
Set<E> entities = new HashSet<E>();
for (Player player : Bukkit.getServer().getOnlinePlayers()) {