Add per-arena setting 'auto-ready'.

This commit is contained in:
Andreas Troelsen 2013-06-10 10:43:03 +02:00
parent ffe270511c
commit db953285c5
3 changed files with 10 additions and 1 deletions

View File

@ -1,7 +1,7 @@
name: MobArena
author: garbagemule
main: com.garbagemule.MobArena.MobArena
version: 0.94.4.98.3
version: 0.94.4.98.4
softdepend: [Spout,Towny,Heroes,MagicSpells,Vault]
commands:
ma:

View File

@ -33,5 +33,6 @@ spout-class-select: false
player-time-in-arena: world
auto-ignite-tnt: false
auto-start-timer: 0
auto-ready: false
use-class-chests: false
display-waves-as-level: false

View File

@ -948,6 +948,14 @@ 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);
}
}
}
@Override