public void Invoke(CommandArgs args) { string buffName = args.Parameters[1]; List <int> buffByIdOrName = Utils.GetBuffByIdOrName(buffName); if (buffByIdOrName.Count == 0) { args.Player.SendErrorMessage("Invalid buff - {0}.", buffName); return; } else if (buffByIdOrName.Count > 1) { TShock.Utils.SendMultipleMatchError(args.Player, buffByIdOrName.Select(x => Utils.Name(x))); return; } _buffManager.AddNewBan(buffByIdOrName[0]); args.Player.SendSuccessMessage("Banned {0}.", Utils.Name(buffByIdOrName[0])); }