Lazy initialization of selected arena.
This fixes issues with having to restart the server for "not ready" type messages.
This commit is contained in:
@@ -578,11 +578,6 @@ public class ArenaMasterImpl implements ArenaMaster
|
|||||||
|
|
||||||
// Register the permission
|
// Register the permission
|
||||||
registerPermission("mobarena.arenas." + arenaname.toLowerCase(), PermissionDefault.TRUE);
|
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.
|
// Finally, add it to the arena list.
|
||||||
arenas.add(arena);
|
arenas.add(arena);
|
||||||
|
|||||||
Reference in New Issue
Block a user