hotfixes
Signed-off-by: Yaruma3341 <yaruma3341@gmail.com>
Dieser Commit ist enthalten in:
Ursprung
42ee422149
Commit
a2c535a6e5
@ -63,7 +63,7 @@ public class FightSystem extends JavaPlugin {
|
||||
init();
|
||||
|
||||
fightState = FightState.SETUP;
|
||||
Countdown countdown = new Countdown(Config.SetupDuration, new FinishNoPlayersOnline());
|
||||
Countdown countdown = new Countdown(Config.NoPlayerOnlineDuration, new FinishNoPlayersOnline());
|
||||
countdown.startTimer(getPlugin());
|
||||
}
|
||||
|
||||
|
@ -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 countdown = new Countdown(Config.SetupDuration, new FinishSetupOver());
|
||||
countdown.startTimer(instance);
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren