/kickme - kicks the user

/kickme - kicks the user

Postby g0d01w4r99 » 27 Jun 2011, 16:42

Read the title.
Little something I wrote back in the MCLawl days.
I'm sure theres countless other versions of this one that you can find elsewhere.

Code: Select all
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MCDzienny
{
    public class CmdKickMe : Command
    {
        public override string name { get { return "kickme"; } }
        public override string shortcut { get { return ""; } }
        public override string type { get { return ""; } }
        public override bool museumUsable { get { return true; } }
        public override LevelPermission defaultRank { get { return LevelPermission.Banned; } }
        public CmdKickMe() { }

        public override void Use(Player p, string message)
        {
            if (message != "") { Help(p); return; }
            p.Kick(p.color + p.name + Server.DefaultColor + " kicked themselves.");

        }
        public override void Help(Player p)
        {
            Player.SendMessage(p, "/kickme - What do you think it does?");
        }
    }

}
Image
User avatar
g0d01w4r99
 
Posts: 453
Joined: 09 May 2011, 13:05
Location: Behind you.

Re: /kickme; Kicks the user.

Postby jkl139 » 27 Jun 2011, 16:43

g0d01w4r99 wrote:Read the title.
Little something I wrote back in the MCLawl days.
I'm sure theres countless other versions of this one that you can find elsewhere.


Scripted yourself? O_o... Teach me how! :P
Image
Image
User avatar
jkl139
 
Posts: 444
Joined: 13 Jun 2011, 11:46
Location: MCDzienny Forum

Re: /kickme; Kicks the user.

Postby g0d01w4r99 » 27 Jun 2011, 16:44

Countless videos of C# on youtube. I'm sure one of them can teach you.
This is really, really basic though. I got some other tricks up my sleeve.
Image
User avatar
g0d01w4r99
 
Posts: 453
Joined: 09 May 2011, 13:05
Location: Behind you.

Re: /kickme; Kicks the user.

Postby jkl139 » 27 Jun 2011, 16:46

g0d01w4r99 wrote:Countless videos of C# on youtube. I'm sure one of them can teach you.
This is really, really basic though. I got some other tricks up my sleeve.


Tell me da trickz :D
Image
Image
User avatar
jkl139
 
Posts: 444
Joined: 13 Jun 2011, 11:46
Location: MCDzienny Forum

Re: /kickme; Kicks the user.

Postby g0d01w4r99 » 27 Jun 2011, 16:47

No, I won't teach you. I'll just post what I made.
Image
User avatar
g0d01w4r99
 
Posts: 453
Joined: 09 May 2011, 13:05
Location: Behind you.

Re: /kickme; Kicks the user.

Postby jkl139 » 27 Jun 2011, 16:53

g0d01w4r99 wrote:No, I won't teach you. I'll just post what I made.


You're mean. Where did you learn it? D:
Image
Image
User avatar
jkl139
 
Posts: 444
Joined: 13 Jun 2011, 11:46
Location: MCDzienny Forum

Re: /kickme; Kicks the user.

Postby g0d01w4r99 » 27 Jun 2011, 16:53

Trial and error.
Image
User avatar
g0d01w4r99
 
Posts: 453
Joined: 09 May 2011, 13:05
Location: Behind you.

Re: /kickme; Kicks the user.

Postby jkl139 » 27 Jun 2011, 16:55

g0d01w4r99 wrote:Trial and error.


I think we shall personal-chat in Chatbox :D
Image
Image
User avatar
jkl139
 
Posts: 444
Joined: 13 Jun 2011, 11:46
Location: MCDzienny Forum


Return to Custom Commands

Who is online

Users browsing this forum: No registered users and 6 guests