[Request] Rotten Flesh Pay

Discussion in 'Archived: Plugin Requests' started by 9mvp9, Oct 3, 2012.

  1. Offline


    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.
  2. Offline


    I'll make it, it will be ready soon...
  3. Offline


  4. Offline


  5. Offline


    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.
  6. Offline


  7. Offline


    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 ;)
  8. Offline


    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.
  9. Offline


    Thanks so much guys!
  10. Offline


    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:


    You can find the source code at:


    But it also uses my common libraries, which you can find at:


    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.
    Last edited by a moderator: May 29, 2016
  11. Offline


    Very nice! Looks like you have this one under control ;)
  12. Offline


    9mvp9 likes this.

Share This Page