Update MissileWars.waiting
Dieser Commit ist enthalten in:
Ursprung
2d6e89549e
Commit
b8343b5aa6
@ -161,6 +161,11 @@ public class MWTeam {
|
||||
MissileWars.end(WinReasons.NO_ENEMY, enemy());
|
||||
}
|
||||
|
||||
public void reset() {
|
||||
players.clear();
|
||||
openInvitations.clear();
|
||||
}
|
||||
|
||||
public void invitePlayer(Player p) {
|
||||
if (enemy().openInvitations.contains(p)) return;
|
||||
openInvitations.add(p);
|
||||
|
@ -93,8 +93,8 @@ public class MissileWars extends JavaPlugin {
|
||||
fightState = FightState.WAITING;
|
||||
StateDependent.setupState(fightState);
|
||||
|
||||
redTeam = new MWTeam(ChatColor.RED, Config.RedSpawn, "Rot", Config.RedPortalZ);
|
||||
blueTeam = new MWTeam(ChatColor.DARK_AQUA, Config.BlueSpawn, "Blau", Config.BluePortalZ);
|
||||
redTeam.reset();
|
||||
blueTeam.reset();
|
||||
}
|
||||
}
|
||||
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren