[Request] Rotten Flesh Pay

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

  1. Offline

    9mvp9

    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

    KeybordPiano459

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

    9mvp9

    Thanks!
     
  4. Offline

    KeybordPiano459

  5. Offline

    PogoStick29

    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

    KeybordPiano459

  7. Offline

    PogoStick29

    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

    hakelimopu

    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

    9mvp9

    Thanks so much guys!
     
  10. Offline

    hakelimopu

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

    PogoStick29

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

    hakelimopu

    9mvp9 likes this.

Share This Page