Is there an simple way to grant specific players permissions by right clicking a item? [duplicate]

Craftbook, a plugin made by sk89q (the same guy who made WorldEdit) has the ability to add command items, and it's probably far more customizable than you need :P

Here is a guide for creating command items using CraftBook.

In the commands section you would add a command to run as console to grant the player the new permission. This changes depending on the permissions plugin you're running.

I use LuckPerms, which is awesome, free and probably the best plugin I've ever used, let alone the best permissions plugin ever. For me, the command would look like this:

/lp user @p perm set new.permission.node true

In this case, the "@p" is replaced with the name of the player that clicked the item, so this would set the permission of whoever clicked the item.

There's some tweaking to do to make sure the item gets consumed and setting some custom lore so players can't just craft the item, but I'll leave that to you.