private void ReportPermittedKits(RocketPlayer p) { string kitsList = ""; //Config.DefaultKit.Name; foreach (Kit k in Config.UserKits) { if (p.HasPermission("gearup.kits." + k.PermissionGroup)) kitsList += k.Name + ", "; } //if (kitsList.Length < 3) // return; //kitsList.Remove(kitsList.Length - 3, 2); kitsList = kitsList.TrimEnd(", ".ToCharArray()); Say(p, $"Kits: {kitsList}", Config.InfoColor); return; }
private PERM GetPermLevel(RocketPlayer p) { PERM perm = PERM.None; if (p.HasPermission(@"gearup.info")) perm = PERM.Info; if (p.HasPermission(@"gearup.self")) perm = PERM.Self; if (p.HasPermission(@"gearup.other")) perm = PERM.Other; if (p.HasPermission(@"gearup.admin")) perm = PERM.Admin; return perm; }