I'm not sure what exactly you're asking, but I feel like you'll be able to find it in the Spigot JavaDocs!
well with chest commands you set up a config with commands. So i decided to use a permission ex command but i need chest commands to use the player who clicks the buy item to get the item. /pex user (this is where the variable would go) add essentials.fly
Ah, okay. I hadn't realised you were talking about the Chest Commands plugin, disregard my previous message x) Can't help you with that, sorry :/