
private static int GetPermissionLevel(Player player)
{
if (player.Client.Account.Rank == 3)
return 1;
return 0;
}
private static int GetPermissionLevel(Player player)
{
return player.Client.Account.Rank;
}
protected static readonly ILog log = LogManager.GetLogger(typeof (Command));
internal class Ranks
{
public static readonly int Owner = 5;
public static readonly int Dev = 4;
public static readonly int Admin = 3;
public static readonly int Mod = 2;
public static readonly int Donor = 1;
}
internal class Kick : Command
{
public Kick()
: base("kick", 5)
{
}
internal class Kick : Command
{
public Kick()
: base("kick", Ranks.Owner)
{
}
{
public static readonly int Owner = 6;
public static readonly int Dev = 5;
public static readonly int MPGH = 4
public static readonly int Admin = 3;
public static readonly int Mod = 2;
public static readonly int Donor = 1;
}
public void Say(Player src, string text)
{
src.Owner.BroadcastPacketSync(new TextPacket()
{
Name = (src.Client.Account.Rank >= 2 ? "@" : src.Client.Account.Rank >= 1 ? "#" : "") + src.Name,
ObjectId = src.Id,
Stars = src.Stars,
BubbleTime = 10,
Recipient = "",
Text = text.ToSafeText(),
CleanText = text.ToSafeText()
}, p => !p.Ignored.Contains(src.AccountId));
log.InfoFormat("[{0}({1})] <{2}> {3}", src.Owner.Name, src.Owner.Id, src.Name, text);
src.Owner.ChatReceived(text);
}
Name = (src.Client.Account.Rank >= 2 ? "@" : src.Client.Account.Rank >= 1 ? "#" : "") + src.Name,
Name = (src.Client.Account.Rank >= 3 ? "#[Owner]" : src.Client.Account.Rank >= 2 ? "@" : src.Client.Account.Rank >= 1 ? "#" : "") + src.Name,