Beispiel #1
0
        void VanillaUnload(Client player, string[] cmd, int iarg)
        {
            string name = cmd [iarg];

            if (World.VanillaWorlds.ContainsKey(name) == false)
            {
                throw new ErrorException("World not loaded");
            }

            VanillaWorld w = World.VanillaWorlds [name];

            World.VanillaWorlds.Remove(name);

            w.Suspended = true;
            w.StopBackend();
            player.TellSystem(Chat.Purple, "Unloaded world " + name);
        }
Beispiel #2
0
        void VanillaSuspend(Client player, string[] cmd, int iarg)
        {
            VanillaWorld w = player.Session.World as VanillaWorld;

            if (iarg < cmd.Length)
            {
                w = World.VanillaWorlds [cmd [iarg]];
            }

            if (w == null)
            {
                throw new UsageException("No vanilla world with the name " + cmd [iarg]);
            }

            w.Suspended = true;
            w.StopBackend();

            Log.WriteChat(player, null, -1, "[Suspend]");
        }