/lol

/lol

Postby Your2Funny » 24 Dec 2013, 18:07

Code: Select all
//created by Your2Funny with help from Hetal728
    using System;

    namespace MCDzienny
    {
        public class CmdLol : Command
        {
            public override string name { get { return "lol"; } }
            public override string shortcut { get { return "lol"; } }
            public override string type { get { return "other"; } }
            public override bool museumUsable { get { return true; } }
            public override LevelPermission defaultRank { get { return LevelPermission.Guest; } }

            public override void Use(Player p, string message)
            {
                if (message == "") { Help(p); return; }

                Player who = Player.Find(message);

                if (who == null)
                {
                    Player.SendMessage(p, "Player not found!");
                    return;
                }

                else
                {
                    Player.GlobalMessage(who.color + who.PublicName +Server.DefaultColor+ " is laughing out loud ");
                }

            }
            public override void Help(Player p)
            {
                Player.SendMessage(p, "/lol [player] - Makes the server say that the player is laughing out loud. :)");
            }
        }
   }
Your2Funny
 
Posts: 6
Joined: 24 Dec 2013, 02:09

Re: /lol

Postby Your2Funny » 24 Dec 2013, 18:17

This is my first CMD so its probaly going to be bad. BUt in the future u will expect good expectations from me and making commands :D
Your2Funny
 
Posts: 6
Joined: 24 Dec 2013, 02:09

Re: /lol

Postby Leeizazombie » 24 Dec 2013, 23:25

Good job! <ok>
Looks like you don't need me after all. ;)
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: /lol

Postby klevin50 » 27 Dec 2013, 14:03

very good for ur first command!!
User avatar
klevin50
 
Posts: 3
Joined: 27 Dec 2013, 13:47
Location: server: Jellybean lavasurvival, Netherlands

Re: /lol

Postby joppiesaus » 27 Dec 2013, 22:14

Awesome beginners command. Better than my first! <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!


Return to Custom Commands

Who is online

Users browsing this forum: No registered users and 7 guests

cron