+ fixing wrong team wins bug
Dieser Commit ist enthalten in:
Ursprung
0512a57568
Commit
513bcaee11
@ -105,6 +105,8 @@ public class FightSystem extends JavaPlugin {
|
||||
setAllPlayersGM(GameMode.SURVIVAL);
|
||||
Bukkit.broadcastMessage(PREFIX + "§aDer Kampf beginnt!");
|
||||
|
||||
new PreRunningCountdown();
|
||||
|
||||
new WinconditionAllDead();
|
||||
new WinconditionCaptainDead();
|
||||
new WinconditionWaterTechKO();
|
||||
@ -113,8 +115,6 @@ public class FightSystem extends JavaPlugin {
|
||||
if(Config.event()){
|
||||
new EventTeamOffWincondition();
|
||||
}
|
||||
|
||||
new PreRunningCountdown();
|
||||
}
|
||||
|
||||
public static void setRunningState() {
|
||||
|
@ -28,6 +28,7 @@ public class EventFight {
|
||||
public static EventFight get(int fightID){
|
||||
ResultSet rs = Core.sql.select("SELECT * FROM EventFight WHERE FightID = " + fightID);
|
||||
try{
|
||||
rs.next();
|
||||
return new EventFight(
|
||||
rs.getInt("EventID"),
|
||||
fightID,
|
||||
|
@ -15,7 +15,7 @@ public class EventTeamOffWincondition {
|
||||
private void teamOff(FightTeam team){
|
||||
if(team.allPlayersOut()){
|
||||
Bukkit.broadcastMessage(FightSystem.PREFIX + "§6Das Team " + team.getName() + " §6ist Offline!");
|
||||
FightSystem.setSpectateState(team);
|
||||
FightSystem.setSpectateState(Fight.getOpposite(team));
|
||||
}
|
||||
}
|
||||
}
|
@ -89,7 +89,7 @@ public class WinconditionWaterTechKO {
|
||||
private static void checkEmpty(FightTeam team, Set<Location> teamWater){
|
||||
if(teamWater.isEmpty()){
|
||||
Bukkit.broadcastMessage(FightSystem.PREFIX + "§6Das Team " + team.getName() + " §6ist Tech K.O.!");
|
||||
FightSystem.setSpectateState(team);
|
||||
FightSystem.setSpectateState(Fight.getOpposite(team));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren