public static void TellAll(CommandArgs args) { if (args.Parameters.Count > 0) { string text = ""; foreach (string word in args.Parameters) { text = text + " " + word; } Group super = new SuperAdminGroup(); if (args.Player.Group.HasPermission("adminchat") && !text.StartsWith("/")) { TShock.Utils.Broadcast(super.Prefix + "<" + args.Player.Name + ">" + text, args.Player.Group.R, args.Player.Group.G, args.Player.Group.B); return; } TShock.Utils.Broadcast("{2}<{0}>{1}".SFormat(args.Player.Name, text, true ? "[{0}] ".SFormat(args.Player.Group.Name) : ""), args.Player.Group.R, args.Player.Group.G, args.Player.Group.B); } }
public CommandExecutorServer() : base("Server") { Group = new SuperAdminGroup(); User = Server.User; }