mirror of
https://github.com/MassiveCraft/Factions.git
synced 2024-11-30 14:13:52 +01:00
Merge pull request #16 from Scyntrus/1.6.x
Re added get function with Player parameter for PlayerEntityCollection
This commit is contained in:
commit
a47caa4ff6
@ -29,6 +29,11 @@ public abstract class PlayerEntityCollection<E extends Entity> extends EntityCol
|
|||||||
return this.get(player.getUniqueId().toString());
|
return this.get(player.getUniqueId().toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public E get(Player player)
|
||||||
|
{
|
||||||
|
return this.get(player.getUniqueId().toString());
|
||||||
|
}
|
||||||
|
|
||||||
public Set<E> getOnline() {
|
public Set<E> getOnline() {
|
||||||
Set<E> entities = new HashSet<E>();
|
Set<E> entities = new HashSet<E>();
|
||||||
for (Player player : Bukkit.getServer().getOnlinePlayers()) {
|
for (Player player : Bukkit.getServer().getOnlinePlayers()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user