mirror of
https://github.com/garbagemule/MobArena.git
synced 2024-11-27 13:07:16 +01:00
Fix auto-ready not working for class chests.
This commit is contained in:
parent
805096c777
commit
b6b2ecc168
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user