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();
|
||||
}
|
||||
|
||||
if(Config.event())
|
||||
mainCountdown = new EventStartCountdown();
|
||||
else if(Config.test())
|
||||
if(Config.test())
|
||||
mainCountdown = null;
|
||||
else
|
||||
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;
|
||||
|
||||
import de.steamwar.fightsystem.FightSystem;
|
||||
import de.steamwar.fightsystem.Config;
|
||||
import org.bukkit.Bukkit;
|
||||
import de.steamwar.fightsystem.FightSystem;
|
||||
|
||||
public class SetupOverCountdown extends Countdown {
|
||||
|
||||
@ -11,13 +10,12 @@ public class SetupOverCountdown extends Countdown {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String countdownCounting() {
|
||||
return "bis die Teams bereit sein müssen!";
|
||||
String countdownCounting() {
|
||||
return "bis die Kits verteilt werden!";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void countdownFinished() {
|
||||
Bukkit.broadcastMessage(FightSystem.PREFIX + "§cKampf wird abgebrochen!");
|
||||
Bukkit.getServer().shutdown();
|
||||
FightSystem.setPreRunningState();
|
||||
}
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren