use of me.andrew28.addons.conquer.api.ConquerPlayer in project Conquer by xXAndrew28Xx.
the class EffInvitePlayer method execute.
@Override
protected void execute(Event e) {
ConquerPlayer[] players = this.players.getArray(e);
ConquerFaction[] factions = this.factions.getArray(e);
if (players == null || factions == null) {
return;
}
for (ConquerPlayer player : players) {
if (player == null) {
continue;
}
for (ConquerFaction faction : factions) {
if (faction == null) {
continue;
}
if (invite) {
faction.invite(player);
} else {
faction.deinvite(player);
}
}
}
}
Aggregations