This plugin allows a "cost" (in the form of a certain type and number of item) to be charged in order to make use of a button or lever.
When activating a button or lever, the player is checked for a configured type of item and certain number, and is charged that amount. If he doesn't have enough, then the lever or button does not activate.
Here are the values in config.yml, and how to use them:
cost
This determines the type and amount of the item needed to activate a button or lever.
messages.(button/lever).(success/failure).enabled
These control whether or not a message is shown when the particular type of switch is thrown.
messages.(button/lever).(success/failure).text
These control the message given to the player when the message is triggered.
There is only one permission:
tfbal.avoid
If you have this permission, then you do not have to pay the toll.
This plugin only deals with the activation of the button or lever. It does not protect the lever/button from breaking.
This plugin is a direct result of a plugin request at http://forums.bukkit.org/threads/request-rotten-flesh-pay.103732/