mirror of
https://github.com/garbagemule/MobArena.git
synced 2024-11-27 13:07:16 +01:00
Add per-arena setting 'auto-ready'.
This commit is contained in:
parent
ffe270511c
commit
db953285c5
@ -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:
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user