SteamWar/FightSystem
Archiviert
13
1
Signed-off-by: Yaruma3341 <yaruma3341@gmail.com>
Dieser Commit ist enthalten in:
Yaruma3341 2019-04-14 12:24:10 +02:00
Ursprung 42ee422149
Commit a2c535a6e5
2 geänderte Dateien mit 5 neuen und 2 gelöschten Zeilen

Datei anzeigen

@ -63,7 +63,7 @@ public class FightSystem extends JavaPlugin {
init(); init();
fightState = FightState.SETUP; fightState = FightState.SETUP;
Countdown countdown = new Countdown(Config.SetupDuration, new FinishNoPlayersOnline()); Countdown countdown = new Countdown(Config.NoPlayerOnlineDuration, new FinishNoPlayersOnline());
countdown.startTimer(getPlugin()); countdown.startTimer(getPlugin());
} }

Datei anzeigen

@ -94,7 +94,10 @@ public class PlayerJoinListener implements Listener {
} }
} }
if(Fight.getRedTeam().hasTeamLeader() && Fight.getBlueTeam().hasTeamLeader()) { if(Fight.getRedTeam().getLeader().getPlayer() == player
|| Fight.getBlueTeam().getLeader().getPlayer() == player
&& Fight.getBlueTeam().hasTeamLeader()
&& Fight.getRedTeam().hasTeamLeader()) {
Countdown.cancelTimerType(CountdownType.NO_PLAYERS_ONLINE); Countdown.cancelTimerType(CountdownType.NO_PLAYERS_ONLINE);
Countdown countdown = new Countdown(Config.SetupDuration, new FinishSetupOver()); Countdown countdown = new Countdown(Config.SetupDuration, new FinishSetupOver());
countdown.startTimer(instance); countdown.startTimer(instance);