/set title without giving player

/set title without giving player

Postby Minecrafter4ty6 » 18 Dec 2013, 21:42

I need a command that can give a player a title without specifying the player name also if you could do the /give command like that that would be cool too. :D Thanks -Minecrafter
Minecrafter4ty6
 
Posts: 16
Joined: 16 Dec 2013, 20:37

Re: /set title without giving player

Postby Leeizazombie » 18 Dec 2013, 21:49

I'm not sure what you mean, do you mean to secretly give titles/coins without announcing to the whole server?
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: /set title without giving player

Postby Leeizazombie » 18 Dec 2013, 21:56

Or if you want it to be like /titleme [title] to give yourself a title then here's a quick code I made:
Code: Select all
using System;
namespace MCDzienny
{
    public class Cmdtitleme : Command
    {
        public override string name { get { return "titleme"; } }
        public override string shortcut { get { return ""; } }
        public override string type { get { return "mod"; } }
        public override bool museumUsable { get { return false; } }
        public override LevelPermission defaultRank { get { return LevelPermission.Guest; } }

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

        }

        public override void Help(Player p)
        {
            Player.SendMessage(p, "/titleme [title] -- Gives you a title.");
        }
    }
}

ps: This has permission for guests, tell me if it should be changed.
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: /set title without giving player

Postby Minecrafter4ty6 » 18 Dec 2013, 22:29

Yes this is just what i needed thanks :D
Minecrafter4ty6
 
Posts: 16
Joined: 16 Dec 2013, 20:37

Re: /set title without giving player

Postby Leeizazombie » 18 Dec 2013, 23:00

Also here is the /give version... I made it /giveme
Hope you like it! <ok>
Code: Select all
using System;
using System.IO;

namespace MCDzienny
{
   public class Cmdgiveme : Command
   {
      public override string name { get { return "giveme"; } }
      public override string shortcut { get { return ""; } }
      public override string type { get { return "mod"; } }
      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;
            }

            else
            {

                int giveme = Convert.ToInt32(message);
                p.money = p.money + giveme;
                Player.SendMessage(p, "You got " + giveme + Server.moneys);
                Player.SendMessage(p, "You now have $money " + Server.moneys);
            }
        }
      public override void Help(Player p)
      {
         Player.SendMessage(p, "/giveme [value] - Gives you money.");
      }
   }
}
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: /set title without giving player

Postby joppiesaus » 19 Dec 2013, 16:57

nice work Leeizazombie!
joppiesaus
 
Posts: 379
Joined: 20 Aug 2012, 07:28
Location: in a obsedian house, with glass in it so i can see the lava!


Return to Requests for Addon

Who is online

Users browsing this forum: No registered users and 2 guests

cron