fCraft.WorldCommands.WorldUnhide C# (CSharp) Method

WorldUnhide() static private method

static private WorldUnhide ( Player player, Command cmd ) : void
player Player
cmd Command
return void
        internal static void WorldUnhide( Player player, Command cmd ) {
            string worldName = cmd.Next();
            if( worldName == null ) {
                cdWorldAccess.PrintUsage( player );
                return;
            }

            World world = WorldManager.FindWorldOrPrintMatches( player, worldName );
            if( world == null ) return;

            if( world.IsHidden ) {
                player.Message( "World \"{0}&S\" is no longer hidden.", world.GetClassyName() );
                world.IsHidden = false;
                WorldManager.SaveWorldList();
            } else {
                player.Message( "World \"{0}&S\" is not hidden.", world.GetClassyName() );
            }
        }