mirror of
https://github.com/taoneill/war.git
synced 2024-11-24 03:05:54 +01:00
Implemented https://github.com/taoneill/war/issues/197
This commit is contained in:
parent
9e7ec98789
commit
338e8eb338
@ -276,9 +276,14 @@ public class Team {
|
|||||||
|
|
||||||
String[] lines = new String[4];
|
String[] lines = new String[4];
|
||||||
lines[0] = "Team " + name;
|
lines[0] = "Team " + name;
|
||||||
lines[1] = remainingLives + "/" + warzone.getLifePool() + " lives left";
|
lines[1] = players.size() + "/" + warzone.getTeamCap() + " players";
|
||||||
lines[2] = points + "/" + warzone.getScoreCap() + " pts";
|
lines[2] = points + "/" + warzone.getScoreCap() + " pts";
|
||||||
lines[3] = players.size() + "/" + warzone.getTeamCap() + " players";
|
if(warzone.getLifePool() == -1) {
|
||||||
|
lines[3] = "unlimited lives";
|
||||||
|
} else {
|
||||||
|
lines[3] = remainingLives + "/" + warzone.getLifePool() + " lives left";
|
||||||
|
}
|
||||||
|
|
||||||
SignHelper.setToSign(war, signBlock, (byte)signData, lines);
|
SignHelper.setToSign(war, signBlock, (byte)signData, lines);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -660,7 +660,11 @@ public class ZoneLobby {
|
|||||||
lines[0] = "Team " + team.getName();
|
lines[0] = "Team " + team.getName();
|
||||||
lines[1] = team.getPlayers().size() + "/" + warzone.getTeamCap() + " players";
|
lines[1] = team.getPlayers().size() + "/" + warzone.getTeamCap() + " players";
|
||||||
lines[2] = team.getPoints() + "/" + warzone.getScoreCap() + " pts";
|
lines[2] = team.getPoints() + "/" + warzone.getScoreCap() + " pts";
|
||||||
|
if(warzone.getLifePool() == -1) {
|
||||||
|
lines[3] = "unlimited lives";
|
||||||
|
} else {
|
||||||
lines[3] = team.getRemainingLifes() + "/" + warzone.getLifePool() + " lives left";
|
lines[3] = team.getRemainingLifes() + "/" + warzone.getLifePool() + " lives left";
|
||||||
|
}
|
||||||
resetGateSign(gate, lines, true);
|
resetGateSign(gate, lines, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user