Bank in the Hopper

Discussion in 'Plugin Requests' started by Deps7, Sep 14, 2016.

Thread Status:
Not open for further replies.
  1. Offline

    Deps7

    Plugin category: Anti-Griefing Tools

    Minecraft version: 1.8.x/1.9.x/1.10

    Suggested name:
    NAWbank

    What I want:
    When run command /bank, open a Hopper (this is your private storage)

    Ideas for permissions:


    1) naw.user for /bank
    2) naw.admin for /bank reset

    Ideas for commands:

    1) /bank
    2) /bank reset (reset all storage)

    When I'd like it by: ASAP

    Please give me also the SRC? Thanks a lot, for your work!

    Anyone reply?

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

    _Star

    There are a lot of plugins for private storage already.

    Example of one:
    <EDIT by Moderator: Redacted paid resource>

    Also, why Anti-Griefing Tools? This has nothing to do with griefing.
     
    Last edited by a moderator: Sep 14, 2016
  3. @_Star, on bukkit, we believe that all plugins should be free. Providing a link to a paid resource isn't a good idea.
     
    ipodtouch0218 likes this.
  4. @Deps7
    I'll take an attempt at this... should be done in a few hours, currently in school.

    What should the title of the hopper be? (Instead of "Item Hopper")... <name>'s Bank? Or should it be customizable?
     
    Last edited: Sep 14, 2016
  5. Offline

    Deps7

  6. What does this do, as in "reset all storage"? Everyone's bank? Seems a bit unsafe.
     
  7. Offline

    9UjtOAtcBA

    @ipodtouch0218 @Deps7
    I assume it resets the executor's storage. But agreed, I honestly don't believe that would be a very useful feature for regular players. For admins it could make sense.
     
  8. It has the naw.admin permission, so it is for admins, I just didn't know whose bank would be reset if so.
     
  9. Offline

    Deps7

    Last edited: Sep 16, 2016
  10. Okay, just making sure.

    EDIT: @Deps7 If you don't mind me asking, why do you need the SRC of the plugin exactly?
    You could just be a meanie and use a decompiler but D:
     
    Last edited: Sep 16, 2016
  11. Offline

    I Al Istannen

    @ipodtouch0218
    Giving the source doesn't harm you, does it? :p
    Just add a License header if you want to allow him to use it (otherwise it is All Rights Reserved if google didn't trick me)

    And the code the decompiler produces is not quite optimal (you can be more than happy if it compiles) and all comments are stripped.

    To the why, I have really no idea. Maybe knowing how to code (a bit :p) and wanting to look how others solve a problem?
    Tahgging @Deps7 so he has to see your edit ;)
     
  12. @I Al Istannen
    Yeah, I'm fine with them having the source, just curious.
     
    I Al Istannen likes this.
  13. Offline

    Deps7

    @ipodtouch0218 is for small change on the .jar, if we want to change something in the last future.
    And my personal curiosity
     
  14. @Deps7
    Okay. I'll add comments so you know what everything does.

    I finished the code itself, just need to test, then debug. Still in class right now, so the testing will start in around
    2-3 hours.
     
  15. Offline

    Deps7

  16. It would be if they didn't use 0-4 for both the hopper and the players inventory.
     
  17. Offline

    JanTuck

    Last edited: Sep 17, 2016
  18. Offline

    I Al Istannen

    ipodtouch0218 likes this.
  19. Offline

    I Al Istannen

    @ipodtouch0218
    Stumbled upon it by accident, hope it will help you :)
    If not, maybe we can work out another way ;) (tomorrow... :p)
     
  20. Offline

    JanTuck

  21. Offline

    Deps7

  22. @Deps7
    Never got to try #getRawSlot I Al Istannen mentioned, been busy all weekend. I'll have to continue when I get home so I can read the slot #'s from getRawSlot in-game.
     
  23. Offline

    Deps7

  24. @Deps7
    As seen from this thread: https://bukkit.org/threads/stackoverflowerror-with-hopper-inventories.432330/
    There is a server-side bug that I can't work around which would teleport items back into the hopper inventory (at least from my jar.)

    I'd have to use BuildTools to get the newest jar and see if that works. Didn't get a chance to yet. If I can fix this, then I'd be all finished.

    EDIT (Just to be safe from double posting - 15 mins from 24hrs xD): Since you've seem to need the plugin soon, I'll change the Inventory to a Chest and limit the slots to 5 slots
     
    Last edited: Sep 28, 2016
  25. Offline

    Deps7

    @ipodtouch0218 Ok, do as you said (chest limited to 5 slots)
    But when will be implemented, also I would like the plugin with the hopper
     
  26. Offline

    JanTuck

    It has to be divisible by 9

    Sent from Tapatalk
     
  27. @Depa7 @JanTuck

    It's a chest inventory with 9 slots, but the first and last two slots are blocked.

    XXOOOOOXX
    X = Blocked
    O = Open


    Sent from my iPhone using Tapatalk
     
  28. Offline

    Deps7

    @ipodtouch0218 O-> Chest | X-> Glass pane Grey

    Chest with 1 row only:

    XXOOOOOXX
     
  29. @Deps7
    Yep, that's what it looks like.


    Sent from my iPhone using Tapatalk
     
Thread Status:
Not open for further replies.

Share This Page