//Made by Breakdown901
using System;
namespace MCDzienny
{
public class CmdReport : Command
{
public override string name { get { return "report"; } }
public override string shortcut { get { return "rt"; } }
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 who = Player.Find(message.Split(' ')[0]);
string reason = (message.Split(' ')[1]);
if (who == null)
{
Player.SendMessage(p, "Player is not online.");
return;
}
else
{
if (reason == "")
{
Player.GlobalMessage(p, p.color + p.name + Server.DefaultColor + " reported " + who.color + who.PublicName + Server.DefaultColor + " for breaking the rules!", false);
}
else if (reason == "griefing")
{
Player.GlobalMessage(p, p.color + p.name + Server.DefaultColor + " reported " + who.color + who.PublicName + Server.DefaultColor + " for &griefing!", false);
}
else if (reason == "spleefing")
{
Player.GlobalMessage(p, p.color + p.name + Server.DefaultColor + " reported " + who.color + who.PublicName + Server.DefaultColor + " for &cspleefing!", false);
}
else if (reason == "spamming blocks")
{
Player.GlobalMessage(p, p.color + p.name + Server.DefaultColor + " reported " + who.color + who.PublicName + Server.DefaultColor + " for &cspamming blocks!", false);
}
else if (reason == "swearing")
{
Player.GlobalMessage(p, p.color + p.name + Server.DefaultColor + " reported " + who.color + who.PublicName + Server.DefaultColor + " for &cswearing or using offensive language!", false);
}
else
{
Player.SendMessage(p, "Please report this player for a valid reason!");
Player.SendMessage(p, "Valid reasons include: 'griefing', 'spleefing', 'spamming blocks', or 'swearing'.");
}
}
}
public override void Help(Player p)
{
Player.SendMessage(p, "/report - /report [player] [reason]");
Player.SendMessage(p, "*Valid reasons are: 'griefing', 'spleefing', 'spamming blocks', 'swearing', or just /report [player]");
}
}
}
Breakdown901 wrote:Would it be possible to install VS 2010 C# onto my laptop, then transfer it onto my computer and that would bypass the admin rights? Or would i still be prompted with the admin password bit when I try to start it up?
Users browsing this forum: No registered users and 1 guest