[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

    kahlilnc

    oooo and aaa my request.
     
  3. Offline

    kahlilnc

    Jeez no plugins are getting excepted into released.

    PS where is that update you promised me.
     
  4. Offline

    captainawesome7

  5. Offline

    kahlilnc

    O: the money going negative thing.
     
  6. Offline

    captainawesome7

    @kahlilnc Oh yeah my bad. Working on it :)

    @kahlilnc There you go :D

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

    kahlilnc

    Ooo thanks.

    The video music is so funny. :rolleyes:

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

    captainawesome7

    @kahlilnc I thought it fit the theme alright (he was shopping while saying the stuff in the song, as well as playing black ops (i think))
     
    kahlilnc likes this.
  9. Offline

    kahlilnc

    I didn't have a clue but it fits alright. I think he was speaking a different language?
     
  10. Offline

    captainawesome7

    @kahlilnc lol its Tobuscus. Somebody remixed his vlog / videogame commentary.
     
    kahlilnc likes this.
  11. Offline

    Xaostica

    So, do these need to be re-stocked with items?
     
  12. Offline

    captainawesome7

    @Xaostica No.. Watch the video, I never fill it up
     
  13. Offline

    Xaostica

    Had to ask, and thanks.
     
  14. Offline

    kahlilnc

    You should add a option and permission for filling it up. :)

    What for kind sir. on this forum?

    I've been banned from minecraft forums. for a week :( that was last month. hehe

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

    Woogleball

    Uhm,, it where can i download iConomy? xd :oops:
     
  16. Offline

    M1sT3rM4n

    Someone finally accepted and solved my request :)
     
  17. @M1sT3rM4n You had absolutely nothing to do with the development of this plugin....
     
  18. Offline

    M1sT3rM4n

    So that's why I requested it :)
     
  19. Offline

    fishsicles

    Excellent plugin, makes managing shops that much easier. Just one nitpick: Would it be possible to specify damage values for wool/dye/etc on the [VEND] sign?

    Also, something that might need a look: One of the guys on my server reports (have not had time to verify it myself) that vending arrows apparently fires them at anything standing in front of the vendor.
     
  20. Offline

    captainawesome7

    Yes vending arrows fires them. It dispenses them, so naturally they are fired.
     
    fishsicles likes this.
  21. Offline

    rdemanta

    Would it be possible to make these work with buttons? If you could do that then people could make real vending machines. Cool plugin nonetheless.
     
  22. Offline

    captainawesome7

    No. There is no way to get a player (to charge him money) without setting a standard place for the button. If you are ok with that (ie: a button has to be in a certain place in relation to a dispenser), than I could do that. Maybe.
     
  23. Offline

    kahlilnc

    You can link the button to the dispenser thru command I think. Codisimus probably could help you out on that. Linking blocks together is his specialty.

    Its in bukkit forum somewhere. iConomy is a plugin fyi.

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

    rdemanta

    That would be fine. Or you could use what kahlilnc reccomended. Either way that would be cool. Imagine seeing a machine about 5 blocks wide and five blocks high that vends food for you, and all you have to do is press a button. Thanks anyway.
     
  25. Offline

    Tarmon11

    I love this plugin, but for some reason whenever I use a dispenser, it does not charge me any money. However, it does give me the "You do not have enough money" message whenever I use it without having enough money, so I know it recognizes that i am using Iconomy (5.0.1). Any idea what I am doing wrong? I set the sign like this:
    [VEND]
    dispenser
    32
    10

    This should cost ten and dispense 32 dispensers, correct? If I have 9 money, it won't let me use it, but if I have 10, it lets me use it as many times as I want. The only other iconomy plugin I'm using is Jobs (v2.0.1).
     
  26. Offline

    captainawesome7

    I don't have any idea why this isn't working for you, it works fine for me and I tested it on kahlilnc's server as well.
     
  27. Offline

    Tarmon11

    Ok, I will keep messing around and see if I can get it working.
     
  28. Offline

    captainawesome7

    If I did what kahlil said it would introduce a sqlite database and the blocks would be saved in the database. Then when you click a button it would checked for a linked dispenser, and if there was one, you would be charged. I don't like this because of the ease of messing with people, for instance, you can put a dispenser under ground and put a button next to a door, and when somebody tries to open the door, they get charged a ton of money.
     
  29. Offline

    Tarmon11

    Ok, now when ever someone uses a dispenser, it gives them the items, but this error spams my console.
     

    Attached Files:

  30. Offline

    captainawesome7

    @Tarmon11 That means you don't have an iConomy account.
     

Share This Page