/mytitlecolor (/titlecolor for freebuild)

/mytitlecolor (/titlecolor for freebuild)

Postby ane200055 » 23 Jul 2013, 15:36

/mytitlecolor [color] , to give yourself a title color
/mytitlecolor remove , removes your title color
Shortcut: /mytcolor
Code: Select all
//made by: ane200055
//Version v0.1
using System;
namespace MCDzienny
{
    public class CmdMytitlecolor : Command
    {
        public override string name { get { return "mytitlecolor"; } }
        public override string shortcut { get { return "mytcolor"; } }
        public override string type { get { return "mod"; } }
        public override bool museumUsable { get { return false; } }
        public override LevelPermission defaultRank { get { return LevelPermission.Banned; } }

        public override void Use(Player p, string message)
        {
            if (message == "")
            {
                Help(p);
                return;
            }
else if (message == "remove")
         {
            Command.all.Find("tcolor").Use(p, p.name);
         }
               else
                 {
                                           Command.all.Find("tcolor").Use(p, p.name + " " + message);
                }
         
      }

        public override void Help(Player p)
        {
         Player.SendMessage(p, "%e/mytitlecolor %bColor %eGives you title color.");
         Player.SendMessage(p, "%eType /mytitlecolor %bremove %eto remove your title color.");
         Player.SendMessage(p, "%eThis also works by doing /mytcolor %bColor %eor /myt %bremove%e.");
        }
    }
}


If you get any problems with this command just tell me, But it should be ok. :)
Website: http://ane200055.co.vu
The Developer of The XtraIRC IRC Client: http://xtrairc.tk
C# coder.
User avatar
ane200055
 
Posts: 98
Joined: 30 Jun 2013, 09:07
Location: United Kingdom

Re: /mytitlecolor (/titlecolor for freebuild)

Postby joppiesaus » 23 Jul 2013, 19:42

Nice command! I think it would work.
For in the future, your tabs and spaces... are a bit weird. So keep an eye on that and keep the work up! <ok>
joppiesaus
 
Posts: 379
Joined: 20 Aug 2012, 07:28
Location: in a obsedian house, with glass in it so i can see the lava!

Re: /mytitlecolor (/titlecolor for freebuild)

Postby Clowny » 23 Jul 2013, 22:27

Nice I'm sure this would be a great addition to a server <ok>
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: /mytitlecolor (/titlecolor for freebuild)

Postby ane200055 » 25 Jul 2013, 16:01

I think this is the second most useful command I made. :)
Website: http://ane200055.co.vu
The Developer of The XtraIRC IRC Client: http://xtrairc.tk
C# coder.
User avatar
ane200055
 
Posts: 98
Joined: 30 Jun 2013, 09:07
Location: United Kingdom


Return to Custom Commands

Who is online

Users browsing this forum: No registered users and 5 guests