Villager Bar

Discussion in 'Archived: Plugin Requests' started by JordyPwner, May 28, 2014.

  1. Offline

    JordyPwner

    Plugin category: Economy/fun

    Suggested name: Villager Bar

    What I want:
    I would like a plugin that got different villagers. when you right click on it a shop Gui opens. The rows of the Shop can be configurble. in a row there are Golden Carrots. The carrots got a Custom name and Lore.
    Each carrot got his own Chance to double your money. Like i take 1 golden Carrot (the first on the left) it got 1/10 chance to double your money also configurble) when you left click on the Carrot (in shop gui) you buy 1. when you bought one simple right click to use it (not eating)
    You can configure this things:
    Name and Lore of the Carrots
    Items in a Row
    The chance of each Carrot
    a Custom message When you lose and Win
    The price of each Carrot



    Ideas for commands:
    Default Player Commands:
    -/VillagerBar help [Base command][Shows Some information]
    -/VillagerBar Create {name} [Spawns a NPC (a Villager) on the place where the players types that command.
    -/Villagerbar remove {name}











    Ideas for permissions:

    - Villagerbar.create
    - Villagerbar.remove
    When I'd like it by: As Soon As Possible
    Thx for Reading ! Got Questions About This? Just Ask Me!
     
  2. Offline

    MAIN20000

  3. Offline

    JordyPwner

    MAIN20000 its not what i want you cant have a chance to double your money
     
  4. Offline

    Onlineids

    PapiDimmi likes this.
  5. Offline

    JordyPwner

  6. Offline

    JordyPwner

  7. Offline

    Zupsub

    I going to make it.

    So if the player tooks one carrot from the shop gui he will buy this carrot, but nothing happens. But when the player right clicks the carrot there is a chance that his money will be doubled?

    It would be easier if the player would win/lose just after he bought/took the carrot.
    Would that be ok, too?

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

    JordyPwner

    Zupsub no he must right click the carrot
    so he can save it in his invetory or chest if he wants
     
  9. Offline

    Zupsub

    Ok, to work the plugin will be need Citizens, ProtocolLib and Vault.
     
  10. Offline

    JordyPwner

    Zupsub thats fine cause im already using that :p
     
  11. Offline

    JordyPwner

    Huge Bump!
     
  12. Offline

    Zupsub

  13. Offline

    JordyPwner

    Zupsub it dont work when i make a villager and try to buy a carrot it gives me a error and i cant eat it or use it (the carrot)
    Zupsub could u add me on skype so we can fix this faster?
    Zupsub error found: http://pastebin.com/BtmpzGGi
     
  14. Offline

    timtower Administrator Administrator Moderator

    PapiDimmi likes this.
  15. Offline

    JordyPwner

    timtower did u even read it probaly not only the word "skype" learn to read the whole sentence and stay out of our business
     
  16. Offline

    timtower Administrator Administrator Moderator

    I did read it. Multiple times before you posted that.
     
    PapiDimmi likes this.
  17. Offline

    JordyPwner

    timtower then you know not to post to say to me: "Not allowed to take it to skype" UNLESS you didnt read it
     
  18. Offline

    ShadowWizardMC

    JordyPwner Umm he's just pointing out one of the most over-forced rules of Bukkit you won't have to go to skype if you would take the time you spent whining to learn Java yourself honestly its not that hard.
     
    PapiDimmi and timtower like this.
  19. Offline

    Zupsub

    I tried it over and over again and all works perfectly for me.:eek:

    Are you sure, you are running the latest Vault? What are you're version of Vault/Craftbukkit?

    Please try to restart your server and look, whether there are errors in the console (printed in red).
     
  20. Offline

    JordyPwner

    Zupsub works fine for me u can go ahead and work on it :p
    Zupsub what i want to be changeable:
    Name and Lore of the Carrots (also in the GUI) Color Code Supported
    Items in a Row
    The chance of each Carrot
    a Custom message When you lose and Win and when you bought one
    The price of each Carrot
     
  21. Offline

    Zupsub

    That's all already done! Look into /plugins/VillagerBar/bars/_NameOfBar_
    The rest will be done soon.
     
  22. Offline

    JordyPwner

  23. Offline

    Jaaakee224

    JordyPwner What's the problem with the plugin?
     
  24. Offline

    JordyPwner

    Jaaakee224 Zupsub is gonna work on it now :p but if we dont stay ontopic thread might get closed :p Zupsub Thx for making this!
     
  25. Offline

    Jaaakee224

    JordyPwner No, it will not be closed, and it's not even offtopic. Again, what's the problem with the plugin?
     
  26. Offline

    JordyPwner

    Jaaakee224 There were some errors but its was my problem :p didnt updated vault now he is gonna work on it
     
  27. Offline

    Jaaakee224

    JordyPwner Okay... but the plugin is already complete. Everything you said he added into it. Now that you have Vault updated, it should work fine.

    (If you are still getting an error please use pastebin and give me the link)
     
  28. Offline

    Zupsub

    Color support + config added. Should be finished now!:)
    Tell me, if something doesn't work!

    http://www.file-upload.net/download-9091623/VillagerBar-PG.jar.html

    ---

    Just to note:
    in the /plugins/VillagerBar/ folder you find:
    - config.yml (should be self-explaining)
    - default.yml => the template, for creating newVillagerBars (when you do /vb create)
    - u.u (not needed for you)
    - /bars/
    - NameOfTheBar => Here you can configure the bar, if you don't want to use the template default.yml
     
  29. Offline

    JordyPwner

    Zupsub As First sorry i was on a little holiday with friends! Now im home and tested it but get this on console error: http://pastebin.com/xR9wGADs
    EDIT: When i click on a empty slot the gui closes. Maybe fix that?
    EDIT2: Your money what you bought didnt doubled. Ill explain: You buy a golden carrot for 1M and if you win you get 2million. now you only get your money back :p
     
  30. Offline

    Zupsub

    Hi,
    1.: I fixed the error, please provide more information next time (when does the error occurs, ...)
    2.: I fixed it, too
    3.: I'm confused. Let's assume I've 110$. I buy one carrot for 10$ => now I have 100$. If I win, I my money get doubled => I've 200$ now. What did you expect?:confused:

    http://www.file-upload.net/download-9101600/VillagerBar-PG.jar.html
     

Share This Page