internal static void Unlock( Player player, Command cmd ) {
string worldName = cmd.Next();
World world;
if( worldName != null ) {
world = WorldManager.FindWorldOrPrintMatches( player, worldName );
if( world == null ) return;
} else if( player.World != null ) {
world = player.World;
} else {
player.Message( "When called from console, /lock requires a world name." );
return;
}
if( !world.Unlock( player ) ) {
player.Message( "The world is already unlocked." );
}
}