Fix auto-ready not working for class chests.

This commit is contained in:
garbagemule 2013-07-17 15:15:48 +02:00
parent 805096c777
commit b6b2ecc168

View File

@ -976,14 +976,7 @@ public class ArenaImpl implements Arena
arenaPlayer.setArenaClass(arenaClass);
arenaClass.grantItems(p);
if (settings.getBoolean("auto-ready", false)) {
if (autoStartTimer.getRemaining() <= 0) {
playerReady(p);
} else {
readyPlayers.add(p);
}
}
autoReady(p);
}
@Override
@ -1030,6 +1023,17 @@ public class ArenaImpl implements Arena
}
}
p.getInventory().setContents(contents);
autoReady(p);
}
private void autoReady(Player p) {
if (settings.getBoolean("auto-ready", false)) {
if (autoStartTimer.getRemaining() <= 0) {
playerReady(p);
} else {
readyPlayers.add(p);
}
}
}
@Override