Implement reset after win! #36
@ -51,8 +51,8 @@ public class Config {
|
|||||||
|
|
||||||
public static final double MissileChance;
|
public static final double MissileChance;
|
||||||
|
|
||||||
public static final UUID BlueLeader;
|
public static UUID BlueLeader;
|
||||||
public static final UUID RedLeader;
|
public static UUID RedLeader;
|
||||||
|
|
||||||
private static final int EventKampfID;
|
private static final int EventKampfID;
|
||||||
|
|
||||||
|
@ -93,6 +93,9 @@ public class MissileWars extends JavaPlugin {
|
|||||||
fightState = FightState.WAITING;
|
fightState = FightState.WAITING;
|
||||||
StateDependent.setupState(fightState);
|
StateDependent.setupState(fightState);
|
||||||
|
|
||||||
|
Config.RedLeader = null;
|
||||||
YoyoNow markierte diese Unterhaltung als gelöst
Veraltet
|
|||||||
|
Config.BlueLeader = null;
|
||||||
|
|
||||||
redTeam.reset();
|
redTeam.reset();
|
||||||
blueTeam.reset();
|
blueTeam.reset();
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren
Bin nicht ganz so ein Fan von der Reset-Methode, besser wäre eine reset-Funktion, welche einfach nur das nötige Zurücksetzt.