SteamWar/FightSystem
Archiviert
13
1

Not stable version

Signed-off-by: Yaruma3341 <yaruma3341@gmail.com>
Dieser Commit ist enthalten in:
Yaruma3341 2019-02-23 12:00:21 +01:00
Ursprung 9fa918d04e
Commit 8b30e77bc5
2 geänderte Dateien mit 3 neuen und 4 gelöschten Zeilen

Datei anzeigen

@ -32,14 +32,13 @@ public class PlayerJoinListener implements Listener {
if (Fight.getPlayerTeam(player) == null) {
if(!Fight.getRedTeam().hasTeamLeader()) {
Fight.getRedTeam().setLeader(new FightPlayer(player, false));
return;
player.setGameMode(GameMode.ADVENTURE);
} else if(!Fight.getBlueTeam().hasTeamLeader()) {
Fight.getBlueTeam().setLeader(new FightPlayer(player, false));
return;
player.setGameMode(GameMode.ADVENTURE);
} else {
player.setGameMode(GameMode.SPECTATOR);
player.teleport(instance.getSpecSpawnLoc());
return;
}
}

Datei anzeigen

@ -32,7 +32,7 @@ public class Countdown {
switch (time) {
case 600: case 300:
Bukkit.broadcastMessage("§6Noch §a" + time / 60 + " §6Minuten" + countdownCallback.countdownCounting());
Bukkit.broadcastMessage("§6Noch §a" + time / 60 + " §6Minuten " + countdownCallback.countdownCounting());
break;
case 60: case 30: case 20: case 15: case 10: case 5: case 4: case 3: case 2:
Bukkit.broadcastMessage("§6Noch §a" + time + " §6Sekunden " + countdownCallback.countdownCounting());