private void CmdRevokePerm(IPlayer player, string cmd, string[] args) { if (args.Length != 2) { player.Reply(GetMessage("Syntax : revokeperm", player.Id)); return; } IPlayer target = FindPlayer(args[0], player); if (target == null) { return; } PlayerInformation information = PlayerInformation.Get(target.Id); if (information == null || !information.Permissions.Any(p => p.Value == args[1].ToLower())) { player.Reply(GetMessage("User Doesn't Have Permission", player.Id).Replace("{target}", target.Name).Replace("{permission}", args[1].ToLower())); return; } information.RemovePermission(args[1].ToLower()); }