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?");
}
}
}