Ejemplo n.º 1
0
        static bool LoadOfflineLevel(Player p, string name, bool ignorePerms)
        {
            if (!Level.CheckLoadOnGoto(name))
            {
                Player.Message(p, "Level \"{0}\" cannot be loaded using /goto.", name);
                return(false);
            }

            CmdLoad.LoadLevel(p, name, "0", true);
            Level lvl = LevelInfo.FindExact(name);

            if (lvl != null)
            {
                return(GotoLevel(p, lvl, ignorePerms));
            }

            Player.Message(p, "Level \"{0}\" failed to be auto-loaded.", name);
            return(false);
        }