Dieser Commit ist enthalten in:
Ursprung
415ec61f7b
Commit
a2dafd7a1a
@ -42,7 +42,7 @@ public class RandomPlayerScript implements RunnableScript {
|
||||
if (size == 0) return true;
|
||||
int index = random.nextInt(size);
|
||||
Player player;
|
||||
if (index > MissileWars.getBlueTeam().getPlayers().size()) {
|
||||
if (index >= MissileWars.getBlueTeam().getPlayers().size()) {
|
||||
player = MissileWars.getRedTeam().getPlayers().get(index - MissileWars.getBlueTeam().getPlayers().size());
|
||||
} else {
|
||||
player = MissileWars.getBlueTeam().getPlayers().get(index);
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren