by Breakdown901 » 17 Jul 2013, 15:49
It compiles and loads, but when you use it it gives you the help message, when I put in "p.name".
- Code: Select all
//Made by Breakdown901
using System;
namespace MCDzienny
{
public class CmdPassword : Command
{
public override string name { get { return "password"; } }
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.Banned; } }
public override void Use(Player p, string message)
{
if (message == "") { Help(p); return; }
{
Player.SendMessage(p, "/password- Enter the password that can only be found by registering on the website to gain a rank and title!");
}
if (message == "forumsguy8")
{
Command.all.Find("setrank").Use(p, p.name + "prosurvivor");
Command.all.Find("settitle").Use(p, p.name + "&aRegis&ctered");
}
if (message == "forumtitle1050")
{
Command.all.Find("settitle").Use(p, p.name + "&aRegis&ctered");
}
}
public override void Help(Player p)
{
Player.SendMessage(p, "/password - /password [password] Ranks you to ProSurvivor and gives you a title if you enter the correct password");
Player.SendMessage(p, "To get the password, register on the website! Website= &aneongamingclassic.webs.com");
}
}
}
Owner of:
Breakdown901 Lava Survival/Zombie Survival/Freebuild
Host of NeonGaming Lava Survival.