/mytitle

/mytitle

Postby ane200055 » 22 Jul 2013, 17:03

Type /mytitle [title] to give yourself a title
Type /mytitle removetitle to delete/remove the title
Type /myt as a shortcut

This command is good for freebuilds as players can not do /title in freebuild mode and good if an staff member is not on the server to give you a title.
Code: Select all
//made by: ane200055
//Version v0.1
using System;
namespace MCDzienny
{
    public class CmdMytitle : Command
    {
        public override string name { get { return "mytitle"; } }
        public override string shortcut { get { return "myt"; } }
        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 == "removetitle")
         {
            Command.all.Find("settitle").Use(p, p.name);
         }
               else
                 {
                                           Command.all.Find("settitle").Use(p, p.name + " " + message);
                }
         
      }

        public override void Help(Player p)
        {
         Player.SendMessage(p, "%e/mytitle %bTitle %eGives you title.");
         Player.SendMessage(p, "%e Type /mytitle %bremovetitle %eto remove your title.");
         Player.SendMessage(p, "%eThis also works by doing /myt %bTitle %eor /myt %bremovetitle%e.");
        }
    }
}
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: /mytitle

Postby Clowny » 22 Jul 2013, 17:09

um well... I guess it would be good since it only allows the player to change their title and nobody elses but it would be up to the owners of servers if they wanted to allow players to change their own titles
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: /mytitle

Postby Leeizazombie » 22 Jul 2013, 17:59

Clowny wrote:um well... I guess it would be good since it only allows the player to change their title and nobody elses but it would be up to the owners of servers if they wanted to allow players to change their own titles

Thats why the owner will choose to load this command.
Owner of:
LeeIzaZombie Freebuild and Lava Survival V2 (Shut Down and updated)
LeeIzaZombie Survival (Comming back soon)

Contact:
Skype: leeizazombie
IRC: irc.geekshed.net, #leeizazombie, #mcclassichosting
User avatar
Leeizazombie
 
Posts: 536
Joined: 10 Jun 2013, 17:45
Location: Ireland.

Re: /mytitle

Postby Breakdown901 » 22 Jul 2013, 18:48

Nice :) As i said before, watch for those spaces.
Owner of:
Breakdown901 Lava Survival/Zombie Survival/Freebuild
Host of NeonGaming Lava Survival.
Breakdown901
 
Posts: 320
Joined: 24 May 2013, 12:54

Re: /mytitle

Postby Breakdown901 » 22 Jul 2013, 18:50

Oh, and just a suggestion, you could add /mytitle color (color).
Owner of:
Breakdown901 Lava Survival/Zombie Survival/Freebuild
Host of NeonGaming Lava Survival.
Breakdown901
 
Posts: 320
Joined: 24 May 2013, 12:54

Re: /mytitle

Postby Clowny » 22 Jul 2013, 19:11

oh and if you wanted to you could also code /mycolor out of this
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: /mytitle

Postby Warren1001 » 22 Jul 2013, 20:52

It's easier to use colorcodes in a title.
There is already a custom /mycolor made by Ultima "/colorme" or something like that.
Warren1001
 
Posts: 197
Joined: 08 Aug 2012, 03:50

Re: /mytitle

Postby ane200055 » 22 Jul 2013, 21:22

Breakdown901 wrote:Nice :) As i said before, watch for those spaces.

I can not help it, The layout looks fine in Notepad++ but when I copy it over to here it messes up the spaces...
I don't know why.
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 6 guests

cron