/badgame

/badgame

Postby leicestercity » 30 Mar 2014, 12:01

when /gg or /goodgame is typed it sends a message out saying that it was a bad game

Code: Select all
using System;
using System.IO;
using System.Threading;
     
namespace MCDzienny
{
    public class badgame : Command
    {
        public override string name { get { return "badgame"; } }
        public override string shortcut { get { return "bg"; } }
        public override string type { get { return "other"; } }
        public override bool museumUsable { get { return false; } }
        public override LevelPermission defaultRank { get { return LevelPermission.Guest; } }
        public override void Use(Player p, string message)
        {
            Player.GlobalMessage(p.color + p.name + " %2Thought this round was a bad game!");
        }

        public override void Help(Player p)
        {
            Player.SendMessage(p, "/goodgame or /gg - Says if the player thought the round was a bad game. ");
        }
    }
}
LEICESTER TILL I DIE
leicestercity
 
Posts: 33
Joined: 08 Mar 2014, 16:36

Re: /badgame

Postby Leeizazombie » 30 Mar 2014, 12:10

Not bad, but I suggest you use p.PublicName, so then it doesn't show their email or + in the name, p.name Is mainly used for finding the player.
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: /badgame

Postby leicestercity » 30 Mar 2014, 12:33

more like this then.

Code: Select all
using System;
using System.IO;
using System.Threading;
     
namespace MCDzienny
{
    public class badgame : Command
    {
        public override string name { get { return "badgame"; } }
        public override string shortcut { get { return "bg"; } }
        public override string type { get { return "other"; } }
        public override bool museumUsable { get { return false; } }
        public override LevelPermission defaultRank { get { return LevelPermission.Guest; } }
        public override void Use(Player p, string message)
        {
            Player.GlobalMessage(p.color + p.PublicName + " %2Thought this round was a bad game!");
        }

        public override void Help(Player p)
        {
            Player.SendMessage(p, "/badgame or /bg - Says if the player thought the round was a bad game. ");
        }
    }
}
LEICESTER TILL I DIE
leicestercity
 
Posts: 33
Joined: 08 Mar 2014, 16:36

Re: /badgame

Postby Leeizazombie » 30 Mar 2014, 12:47

Yeah ;)
Want me to update the post?
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.


Return to Custom Commands

Who is online

Users browsing this forum: No registered users and 6 guests

cron