BuyNodes

Discussion in 'Archived: Plugin Requests' started by Tsrizchris, Aug 31, 2012.

  1. Offline

    Tsrizchris

    Plugin category: Permissions/economy

    Suggested name: BuyNodes

    What I want: A plugin that allows users to buy individual permission nodes using iConomy. For example, I could buy the node " - essentials.gamemode" for... lets say 1,000. And then later I could buy " - essentials.item" for another 600. Maybe if the plugin could have a buycraft-like interface, where you could see which options are available for what price.


    Ideas for commands: /buy 1-6 (No Buycraft, don't worry!)

    Ideas for permissions: - buynodes.buy

    When I'd like it by: As soon as possible, hopefully within a week or two!

    Thanks!

    ~Chris~

    Could anyone make this?

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

    np98765

    Wait at least 12 hours before bumping.
     
  3. Offline

    jacklin213

    seems simple but it ain't :(
     
  4. Offline

    JOPHESTUS

    Hmm, I could give it a go if you'd like. I may not be able to complete it though.
     
  5. Offline

    Tsrizchris

    Thanks! Do you have any estimate on how long it may take?
     
  6. Offline

    Doggyroc

    This is very simple! Ill make it...
     
  7. Offline

    np98765

    Isn't JOPHESTUS already making it? :p

    And not really... You can hook into Vault for both the economy part and permissions part. That does most of the work.. ;)
     
  8. Offline

    Doggyroc

    Damn, didn't see his post, almost done :( Meh.. dosn't matter...
     
  9. Offline

    Tsrizchris

    Thanks for all your help guys! I really appreciate it! ^_^
     
  10. Offline

    JOPHESTUS

    You can make it, I don't know how to hook into vault so my way would be inefficient. Besides, I have other things to do anyway :p
     
  11. Offline

    np98765

    Beat him to it. :p
     
  12. Offline

    Tsrizchris

    If any of you guys finish it, could you post a link here and/or PM me?

    Thanks you all so much!

    ~chris~
     
  13. Offline

    Doggyroc

    I'm actually almost done (Bugs are wonderful!).
     
    JOPHESTUS likes this.
  14. Offline

    Tsrizchris

    Haha, thanks :) I'm using permissionsEX, not sure if that really counts for a lot.
     
  15. Offline

    Doggyroc

    119 Lines of code :3, almost done.
     
  16. Offline

    bobacadodl

    119? Does it really take that much? Using vault you can probably fit this in under 50 lines
     
  17. Offline

    Doggyroc

    [quote uid=90595184 name="bobacadodl" post=1315990]119? Does it really take that much? Using vault you can probably fit this in under 50 lines[/quote]
    for some reason i decided to put:
    Code:
                if(arg[0].equals("1")){
                    Integer i = Integer.parseInt(arg[0]);
                    addPerm(sender, i);
                    return true;
                }
                if(arg[0].equals("2")){
                    Integer i = Integer.parseInt(arg[0]);
                    addPerm(sender, i);
                    return true;
                }
    etc...
    
    in there :3

    Done! requires vault, <Edit by Moderator: Redacted mediafire url>

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

    Tsrizchris

    YAY! Thank you so much!

    Okay I'm a little confused on what permission node I should use to give players ability to use the /buy command?

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

    Doggyroc

    Oah forgot to tell you, its BuyNode.Buy
     
  20. Offline

    Tsrizchris

    Do you think it's possible to update it so that you can ban users from being able to buy certain nodes? Or nodes altogether? And give admins the possibility to remove nodes? (XD, sorry if I'm asking for too much- tell me!) I'm really grateful you decided to do this. Thanks again!

    ~Chris~

    PS- When trying to buy I get this error...

    http://pastebin.com/j7ZpNYqn

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

    jacklin213

    Doggyroc u need to look at line 34,99 in ur buy node class
     
  22. Offline

    Doggyroc

    Yes, i know how to read stack traces :p
     
  23. Offline

    jacklin213

    :) duh u made the plugin I just wanted to not look like I'm doing nothing lol
     
  24. Offline

    Doggyroc

    :3
     

Share This Page