Paid 2 interact (use button --> economy)

Discussion in 'Archived: Plugin Requests' started by nicquehen, Nov 16, 2011.

  1. Offline

    nicquehen

    Hello,

    I have a casino and my member create redstone wire with a button.

    I use triggerCmds v1.2 to add a triger on this button , when my member interact they deposit 10sg in bank account.

    But i have a huge bug :/ mym member with 0 credit can interact too....

    So i need a plugin can stop interaction when the player have 0 credit...

    Need help :/
     
  2. This is in the wrong forum. A moderator will probably move it.

    You use an Event to know when a button is pressed right?
    I think you have to set the priority to HIGH or HIGHEST.
    And cancel the event if a player has 0 credit, like event.setCanceled(true)
     
  3. Offline

    Archelaus

    I've moved this to Bukkit Help, but I'm not entirely sure on the nature of this. So please tag me (@Archelaus) if I've moved this to the wrong place and I'll correct the threads placement.
     
  4. Offline

    nicquehen

Share This Page