Lazy initialization of selected arena.

This fixes issues with having to restart the server for "not ready"
type messages.
This commit is contained in:
garbagemule 2013-08-15 03:39:26 +02:00
parent 8a45e0c953
commit a15f60b761

View File

@ -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);