/legal (Now Working Fully)

/legal (Now Working Fully)

Postby 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.");
      }
   }
}
AFK_Games
 
Posts: 21
Joined: 11 Apr 2014, 21:19

Return to Custom Commands

Who is online

Users browsing this forum: No registered users and 2 guests

cron