/rapist - bot command

/rapist - bot command

Postby Clowny » 22 Jul 2013, 19:40

Alright so this is just another little fun command sort of like /herobrine for those of you familiar with it.
Code: Select all
//Created by Clowny
using System;
namespace MCDzienny
{
   public class CmdRapist : Command
    {
        public override string name { get { return "rapist"; } }
        public override string shortcut { get { return "rp"; } }
        public override string type { get { return "other"; } }
        public override bool museumUsable { get { return false; } }
        public override LevelPermission defaultRank { get { return LevelPermission.Operator; } }
        public override void Use(Player p, string message)
        {
            if (message != "") { Help(p); return; }
            Command.all.Find("botadd").Use(p, "Rapist");
            Command.all.Find("botset").Use(p, "Rapist hunt");
            Command.all.Find("botset").Use(p, "Rapist kill");
            Command.all.Find("say").Use(p, p.color + p.prefix + p.name + " &eunleashed the &4Rapist&e!");
        }

        public override void Help(Player p)
        {
            Player.SendMessage(p, "/rapist - Unleashes the rapist.");
        }
    }
}
Founder Of MC Classic Hosting Community http://mcclassichosting.webs.com
Founder of MC Classic Software MCReborn http://mcreborn.tk
Professional Hoster and Basic C# Coder
Image
User avatar
Clowny
 
Posts: 112
Joined: 14 Jul 2013, 03:53

Re: /rapist - bot command

Postby Warren1001 » 22 Jul 2013, 20:49

say.use(p, .prefix + .color + .PublicName + etc ) is correct order.
Warren1001
 
Posts: 197
Joined: 08 Aug 2012, 03:50

Re: /rapist - bot command

Postby Clowny » 22 Jul 2013, 20:57

it still works :roll:
Founder Of MC Classic Hosting Community http://mcclassichosting.webs.com
Founder of MC Classic Software MCReborn http://mcreborn.tk
Professional Hoster and Basic C# Coder
Image
User avatar
Clowny
 
Posts: 112
Joined: 14 Jul 2013, 03:53


Return to Custom Commands

Who is online

Users browsing this forum: No registered users and 5 guests