/crush - A New Crush/Death Command!

/crush - A New Crush/Death Command!

Postby AFK_Games » 30 Aug 2014, 22:44

Hey, you will find out what this does when you use it, trust me >:]

Hope you like it :D

Code: Select all
using System;
using System.IO;
using System.Threading;

namespace MCDzienny
{
   public class CmdCrush : Command
   {
      public override string name { get { return "crush"; } }
      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.Guest; } }
      public override void Use(Player p, string message)
     {
       Player.SendMessage(p, "Well done, you crushed " + message + " successfully. %4HAHA!");
        Command.all.Find("kill").Use(p, message + " was crushed by " + p.PublicName + "!");
                  }
      public override void Help(Player p)
      {
         Player.SendMessage(p, "/crush - Crushes a player in a painful way, use it at your own peril.");
      }
   }
}
AFK_Games
 
Posts: 21
Joined: 11 Apr 2014, 21:19

Re: /crush - A New Crush/Death Command!

Postby keystirras » 13 Nov 2014, 08:05

using System;
using System.IO;
using System.Threading;

namespace MCDzienny
{
public class CmdCrush : Command
{
public override string name { get { return "crush"; } }
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.Guest; } }
public override void Use(Player p, string message)
{
Player.SendMessage(p, "Well done, you crushed " + message + " successfully. %4HAHA!");
Command.all.Find("kill").Use(p, message + " was crushed by " + p.PublicName + "!");
}
public override void Help(Player p)
{
Player.SendMessage(p, "/crush - Crushes a player in a painful way, use it at your own peril.");
}
}
}


Couldn't you remove
"using System.IO;
using System.Threading;" and it would still work?
keystirras
 
Posts: 31
Joined: 13 Dec 2012, 06:03

Re: /crush - A New Crush/Death Command!

Postby Leeizazombie » 13 Nov 2014, 12:30

keystirras wrote:Couldn't you remove
"using System.IO;
using System.Threading;" and it would still work?

Yes, it will still work, they're just unused libraries.
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.


Return to Custom Commands

Who is online

Users browsing this forum: No registered users and 3 guests

cron