use of com.griefdefender.api.ClanPlayer in project GDHooks by bloodmc.
the class GDClan method getLeaders.
@Override
public List<ClanPlayer> getLeaders(boolean onlineOnly) {
final List<ClanPlayer> clanPlayers = new ArrayList<>();
final ClanPlayer clanPlayer = GDHooks.getInstance().getClanProvider().getClanPlayer(this.pluginClan.getGuildMaster().getUuid());
if (clanPlayer != null) {
clanPlayers.add(clanPlayer);
}
return clanPlayers;
}
use of com.griefdefender.api.ClanPlayer in project GDHooks by bloodmc.
the class GDClan method getLeaders.
@Override
public List<ClanPlayer> getLeaders(boolean onlineOnly) {
final List<ClanPlayer> clanPlayers = new ArrayList<>();
final ClanPlayer clanPlayer = GDHooks.getInstance().getClanProvider().getClanPlayer(this.pluginClan.getLeader());
if (clanPlayer != null) {
clanPlayers.add(clanPlayer);
}
return clanPlayers;
}
use of com.griefdefender.api.ClanPlayer in project GDHooks by bloodmc.
the class GDClan method getMembers.
@Override
public List<ClanPlayer> getMembers(boolean onlineOnly) {
final List<ClanPlayer> clanPlayers = new ArrayList<>();
final List<GuildMember> members = new ArrayList<>(onlineOnly ? this.pluginClan.getOnlineMembers() : this.pluginClan.getMembers());
for (GuildMember pluginClanPlayer : members) {
final ClanPlayer clanPlayer = GDHooks.getInstance().getClanProvider().getClanPlayer(pluginClanPlayer.getUuid());
if (clanPlayer != null) {
clanPlayers.add(clanPlayer);
}
}
return clanPlayers;
}
use of com.griefdefender.api.ClanPlayer in project GDHooks by bloodmc.
the class GDClan method getMembers.
@Override
public List<ClanPlayer> getMembers(boolean onlineOnly) {
final List<ClanPlayer> clanPlayers = new ArrayList<>();
final List<UUID> members = onlineOnly ? this.pluginClan.getOnlineMembers() : this.pluginClan.getMembers();
for (UUID clanMemberUniqueId : members) {
final ClanPlayer clanPlayer = GDHooks.getInstance().getClanProvider().getClanPlayer(clanMemberUniqueId);
if (clanPlayer != null) {
clanPlayers.add(clanPlayer);
}
}
return clanPlayers;
}
Aggregations