by AFK_Games » 17 Jul 2014, 13:25
This code was originally by Leicestercity, but I have played around with it and make it work correctly.
- Code: Select all
//Firstly created by Leicestercity.
//Edited by AFK_Games
//Made with MCDzienny Code Creator
using System;
using System.IO;
using System.Threading;
namespace MCDzienny
{
public class CmdLegal : Command
{
public override string name { get { return "legal"; } }
public override string shortcut { get { return ""; } }
public override string type { get { return "other"; } }
public override bool museumUsable { get { return false; } }
public override LevelPermission defaultRank { get { return LevelPermission.Operator; } }
public override void Use(Player p, string message)
{
Player.GlobalMessage("%fAll %1Humans %fare %2Legal%f, check done by " + p.name + p.color + "%f.");
Player.SendMessage(p, "%fThanks for doing the %2legal %fcheck " + p.name + p.color + "%f.");
}
public override void Help(Player p)
{
Player.SendMessage(p, "/legal - Displays a message across the server saying all Humans are legal.");
}
}
}