Balance ItemCountdown for uneven Teams #12
@ -67,7 +67,7 @@ public class MWTeam {
|
||||
sbteam.setColor(color);
|
||||
}
|
||||
|
||||
public void givePlayerItem(ItemStack item){
|
||||
public void givePlayerItem(ItemStack item) {
|
||||
Player p = players.removeFirst();
|
||||
players.addLast(p);
|
||||
|
||||
|
@ -47,9 +47,9 @@ public class ItemCountdown extends StateDependent {
|
||||
}
|
||||
|
||||
private void run(){
|
||||
int items = Math.max(MissileWars.getBlueTeam().size(), MissileWars.getRedTeam().size());
|
||||
int itemCount = Math.max(MissileWars.getBlueTeam().size(), MissileWars.getRedTeam().size());
|
||||
|
||||
for (int i = 0; i < items; i++) {
|
||||
for (int i = 0; i < itemCount; i++) {
|
||||
ItemStack itemStack = SpecialItem.getRandomItem();
|
||||
|
||||
MissileWars.getBlueTeam().givePlayerItem(itemStack);
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren