Merge branch 'autoStart' of SteamWar/FightSystem into master
Dieser Commit ist enthalten in:
Commit
9885225466
@ -123,9 +123,7 @@ public class FightSystem extends JavaPlugin {
|
|||||||
Fight.getRedTeam().pasteSchematic();
|
Fight.getRedTeam().pasteSchematic();
|
||||||
}
|
}
|
||||||
|
|
||||||
if(Config.event())
|
if(Config.test())
|
||||||
mainCountdown = new EventStartCountdown();
|
|
||||||
else if(Config.test())
|
|
||||||
mainCountdown = null;
|
mainCountdown = null;
|
||||||
else
|
else
|
||||||
mainCountdown = new SetupOverCountdown();
|
mainCountdown = new SetupOverCountdown();
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
package de.steamwar.fightsystem.countdown;
|
|
||||||
|
|
||||||
import de.steamwar.fightsystem.FightSystem;
|
|
||||||
import de.steamwar.fightsystem.Config;
|
|
||||||
|
|
||||||
public class EventStartCountdown extends Countdown {
|
|
||||||
|
|
||||||
public EventStartCountdown() {
|
|
||||||
super(Config.SetupDuration, SWSound.BLOCK_NOTE_PLING, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
String countdownCounting() {
|
|
||||||
return "bis die Kits verteilt werden!";
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
void countdownFinished() {
|
|
||||||
FightSystem.setPreRunningState();
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,8 +1,7 @@
|
|||||||
package de.steamwar.fightsystem.countdown;
|
package de.steamwar.fightsystem.countdown;
|
||||||
|
|
||||||
import de.steamwar.fightsystem.FightSystem;
|
|
||||||
import de.steamwar.fightsystem.Config;
|
import de.steamwar.fightsystem.Config;
|
||||||
import org.bukkit.Bukkit;
|
import de.steamwar.fightsystem.FightSystem;
|
||||||
|
|
||||||
public class SetupOverCountdown extends Countdown {
|
public class SetupOverCountdown extends Countdown {
|
||||||
|
|
||||||
@ -11,13 +10,12 @@ public class SetupOverCountdown extends Countdown {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String countdownCounting() {
|
String countdownCounting() {
|
||||||
return "bis die Teams bereit sein müssen!";
|
return "bis die Kits verteilt werden!";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void countdownFinished() {
|
public void countdownFinished() {
|
||||||
Bukkit.broadcastMessage(FightSystem.PREFIX + "§cKampf wird abgebrochen!");
|
FightSystem.setPreRunningState();
|
||||||
Bukkit.getServer().shutdown();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren