In need of a plugin that will deduct 50 rotten flesh when you push a button or flip a lever. This is all I need.. I'm sure it would be simple to code, so if anyone finds a way to make this, I will be in your debt. Thanks! EDIT: No commands or Permissions would be needed. This would also apply to all levers and buttons and if you didn't have enough rotten flesh, A message would be sent back to you.
KeybordPiano459 Check if the inventory contains 50 rotten flesh, and deduct it if it does. Otherwise, stop the event. That would eliminate the need to be holding the flesh. I can add this if you don't want to.
Out of bordom, I'll keep you posted [√] Open JD-GUI [√] Create a new project with everything [] Fix the problem (This may take a few mins...) [] Export [] Upload [] Post a link here
This seems a little too specialized for me. It seems to me that this plugin would be a fine candidate for a config file specifying the "cost", as well as a permission that allows a player to "avoid" the toll.
So, here's a question: For levers, we charge the "price" no matter the starting state of the lever? So it costs to turn it on and it costs to turn it off? Here's an initial cut of the JAR: https://code.google.com/p/hakelimopu-mcplugins/downloads/detail?name=tfbal-1.3.2.0.jar&can=2&q= You can find the source code at: https://code.google.com/p/hakelimopu-mcplugins/source/browse/#svn/trunk/TollsForButtonsAndLevers But it also uses my common libraries, which you can find at: https://code.google.com/p/hakelimopu-mcplugins/source/browse/#svn/trunk/Common I'll have it up on BukkitDev shortly. The approval process often takes a day or two. EDIT by Moderator: merged posts, please use the edit button instead of double posting.