Пример #1
0
        public override void Use(Player p, params string[] args)
        {
            // CURRENTLY JUST USING FOR DEBUG
            if (args.Length >= 1)
            {
                bool silent = false;
                string text = args[0];
                if (text[0] == '@')
                {
                    text = text.Remove(0, 1);
                    silent = true;
                }

                Player pl = Player.FindPlayer(args[0]);
                if (pl == null) { p.SendMessage("Player not found.", WrapMethod.Chat); return; }

                Use(pl);
                if (!silent) Player.GlobalMessage(pl.username + " was destroyed by " + p.username);
            }
            else p.hurt(9999, true);
        }