mirror of
https://github.com/garbagemule/MobArena.git
synced 2024-11-27 04:55:25 +01:00
Lazy initialization of selected arena.
This fixes issues with having to restart the server for "not ready" type messages.
This commit is contained in:
parent
8a45e0c953
commit
a15f60b761
@ -578,11 +578,6 @@ public class ArenaMasterImpl implements ArenaMaster
|
||||
|
||||
// Register the permission
|
||||
registerPermission("mobarena.arenas." + arenaname.toLowerCase(), PermissionDefault.TRUE);
|
||||
|
||||
// Set the selected arena, if it is null
|
||||
if (selectedArena == null) {
|
||||
selectedArena = arena;
|
||||
}
|
||||
|
||||
// Finally, add it to the arena list.
|
||||
arenas.add(arena);
|
||||
|
Loading…
Reference in New Issue
Block a user