[INACTIVE][ECON] SimpleVend v1.2 - Vending with dispensers + iConomy/3co [860]

Discussion in 'Inactive/Unsupported Plugins' started by captainawesome7, May 28, 2011.

  1. Offline

    captainawesome7

    SimpleVend - Create vending machines with dispensers and iConomy/3co
    Version: 1.2
    SimpleVend is a plugin that somebody requested and I felt that it was about time that I learned how to create a plugin that works with iConomy or 3co. All you do is make a sign 2 blocks under a dispenser that defines what item is given, how many, and how much it costs (not per item, overall).

    Requirements:
    Features:
    • Dispenser vending machine
    • Permissions
    • iConomy 5.x
    • Lightweight
    Usage:
    Usage (open)

    To use, create a dispenser and a block under it. The block under that should be a sign, like this:
    Dispenser
    Grass
    Sign
    The text on the sign should be as follows:
    [VEND]
    itemname
    amount
    cost
    For an example:
    [VEND]
    stone
    1
    10
    The above will dispense 1 stone, and charge the player 10 dollars (or whatever your iConomy currency is). If no itemname is specified, it defaults to stone. If no item amount is specified, it defaults to 1. If no cost is specified, it defaults to 0.

    Video Demo:
    Video (open)



    Permission Nodes:
    • simplevend.create - To make a [VEND] sign
    • simplevend.edit - To edit the inventory of the Dispenser, it clears it on item dispensing anyways
    • simplevend.free - To not charge the player when they get something from the machine
    Downloads:
    The source code is included in the .jar (/com/awesomevilleserver/SimpleVend/)

    Planned Changes
    None so far :)

    Changelog:
    Version 1.2
    • Added 3co support, the plugin works the same
    Version 1.1
    • Added a check to see if the player has enough money, if they don't, they can't buy the item.
    Version 1.0
    • Release
    [​IMG] To me to support my plugins :)
     
    krasi1105, dutstra, Mitsugaru and 3 others like this.
  2. Offline

    Tarmon11

    I went into my server, created an account for myself, added $100 to it, used a $10 dispenser, and it still did not subtract the money from my account. But thanks for telling me I had to make an account, I earlier purged the database, and that must have erased all of them. The error messages have stopped, but I still cant figure out why it's not working. Also, I am using the newest recommended build that just got updated a few hours ago. It said all plugins working with the previous build would work with it, but could that be the problem?
     
  3. Offline

    captainawesome7

    @Tarmon11 Hmm, I'll check on my own server in a sec

    Wait a minute, do you have the .* node? That would include the simplesign.free ....

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  4. Offline

    Tarmon11

    node? is permissions required?
     
  5. Offline

    captainawesome7

    Not required, but if you are OP, it doesn't charge you :p
     
  6. Offline

    Tarmon11

    .....................Really:mad:? I feel like an idiot. Me and all of my players thank you. Could add a config file where you can configure things like not charging ops?
     
  7. Offline

    captainawesome7

    By next release, yes
     
  8. Offline

    rdemanta

    I didn't even think of that. I have one more idea to try and fix that. You have to hit the button twice and it says a message saying something like "hit this button again to confirm your purchase of (itemname) for (price)." Also, why not make a certain distance limit, like 2 blocks?
     
  9. Offline

    Woogleball

    i know, but i did not find the iConomy download i only found plugins that you could use with iConomy, But i found it :)
     
  10. Offline

    Hitman4Hire

    Why does it vend an item even if its not in the dispenser?
     
  11. Offline

    captainawesome7

    Um, its a vending machine... The whole point is allowing players to buy items without somebody running around re-stocking dispensers. It actually clears the dispenser on vending (to only dispense the one object), so I wouldn't recommend putting anything in them.
     
  12. Offline

    Hitman4Hire

    No thats fine, my only concern is that users will make a vending machine that vends diamonds for free :<
     
  13. Offline

    captainawesome7

    Then don't give them permission...
     
  14. Offline

    NeatMonster

    Can you add a simplevend.use permission?
     
  15. Offline

    captainawesome7

    I guess so. In v1.2
     
  16. Offline

    wazakiller

    i was wondering, can you make a lever or button that will automatically subtract an item or $ from you and then activates itself?

    would be awsome if you made that for me.
    thanks in advance maurice
     
  17. Offline

    captainawesome7

    That sounds doable. It will be confusing though, so maybe released by tomorrow or saturday :)
     
  18. Offline

    wazakiller

    that would be so awesome i would prefer that the lever or button subtracts an item but if money is easier just use money thanks!
     
  19. Offline

    captainawesome7

    If you want to buy things with items you can use the trade signs from SimpleSign
     
  20. Offline

    wazakiller

    I want to make a slot machine where you throw in 1 goldignot and you have a chance to win 10 ignots.
    i want to use a lever with a dispenser for that system and somthing that radomly geratjes 1 or 0. So taht is what i want, anny idea on how to make it (in a quite small page)?
     
  21. Offline

    captainawesome7

    @wazakiller I'm pretty sure theres a solot machine plugin, IDK though.
     
  22. Offline

    wazakiller

    the closest thing i found to a slot machine was your vening machine.
     
  23. Offline

    cameron rees

    how do you make the message pop up "with iconomy saying "CHARGING X DOLLARS FOR X ITEM"?
     
  24. Offline

    captainawesome7

    what
     
  25. Offline

    RG_PankO

    How do you add ref, orange, green wool ? Please give me a semple code :/

    p.p. Got it working with everythink else, just can't do this one :/
     
  26. Offline

    captainawesome7

    It currently doesn't work with durability values, I'm doing this by next release.
     
  27. Offline

    RG_PankO

    thx for fast reply and the great plugin.

    I own you a beer :)
     
  28. Offline

    QuadTAZ

    hey sorry about this but how do you make a dispenser if there is a space in the name for example how would i make one for Cooked Porkchops?

    Are you op when i was op it didnt charge me either than i just deoped myself and it started charging me again

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  29. Offline

    captainawesome7

    Underscore
     
  30. Offline

    QuadTAZ

    ah thank you
     
  31. Offline

    RG_PankO

    Sum 41 - Still waiting :p
     

Share This Page