Post Office

Discussion in 'Archived: Plugin Requests' started by And7rey, Jun 17, 2014.

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

    And7rey

    Plugin category: MECHANICS

    Suggested name: Post Office

    What I want: I would like a plugin where people can make a 'Post Office' , there would be chests in the office and under , or next to the chests would be 'special' buttons , people could put items into the chest and push the button , the items would disappear and the items get saved ( To make sure that others don't steal it :p ) , after that a player would enter a command , and the items get sent to a player , when the player enters the server , a message appears , something like: 'You've got a new package , go to the post office to pick it up' . There would be a 'pickup' button in the post office , when a player pushes that , all the items that were sent to him appear in his inventory.

    Ideas for commands:
    /postoffice create [click] ( requires a button under or next to the chest , it makes the chest a post chest

    /postoffice remove [click] ( removes the chest from the office, it becomes a normal chest again )

    /postoffice pickup create [click] ( a normal button becomes a 'pickup' button , when a player pushes that , he gets the items that were sent to him )

    /package [name] ( sends the items that were in the chest to a player )

    Ideas for permissions:

    postoffice.create - Gives all the abilities to make a post office

    postoffice.use - Making , sending and picking up packages

    When I'd like it by: As soon as possible :D

    Thanks in the future :D
     
  2. Offline

    yellowfuzz

    A plugin like this seems easily do-able, but, I would like to give a suggestion that will make this plugin a little bit more efficient.

    1) Instead of depositing items in a chest, items can be transported via command.

    ex: Player uses /postoffice send <player name> [item id] [amount]

    a) A chest can be placed by mods that can be used by players to pick up packages sent to them.
    b) Mailboxes can be placed by players for "small items" listed in a config file.

    2) We could follow your original idea, but players will have to alter item metas (using a command of course) that tells the plugin who to send it too.

    a) Why chest? The chest idea is easy to do, but it would be easier for it to be a unusable hopper.
     
  3. Offline

    And7rey


    Well I don't know , I think chest would be better anyway because then they could put just all items in it , with a command , players could only send 1 kind of an item. There are also such plugins , with chests it would be more professional.
     
  4. Offline

    yellowfuzz

    Would this idea be good for you?

    Players, once they created a home, will be able to place only one mailbox (exceptions include staff) by placing a sign with
    Code:
    [Mailbox]
    <player name>
    near a chest (one block radius). Staff can create a "pick up mailbox" by placing a sign with
    Code:
    [Mailbox]
    [Everyone]
    near a chest.

    Items can be sent by either:
    Placing an item in the target player's own mailbox, or changing the Item Meta to:
    Code:
    To: [Player Name]
    From: [Player Name]
    
    , with the command /postoffice name <Player Name>. (this will name the item the player is currently holding)

    There can be fees and delays in the post office service, which can be altered in a config file.
     
  5. Offline

    And7rey

    Well , not really , I don't like using signs I think it is very unprofessional , and it would be easier to have 1 post office and not to force players to make mailboxes , and it would be hard for staff to make pick up mailboxes everywhere , I think it's too complicated , would stay by my original post if it's not a problem but thanks anyway :)
     
  6. Offline

    yellowfuzz

    I found out i didn't fully understand your post in the beginning, but now, it's making more sense.

    What you're saying is:
    There is a post office (a chest near a button).
    When a player puts an item in a chest, a Hashmap<Player, List<ItemStack>> records the items the player puts in the chest and the plugin removes the item in the chest. Then, the player can send the items to whoever he wants to with a command.

    When a player presses this "special" button, he/she gets his/her packages.

    Can you clarify any mistakes and can you answer these questions for me:

    1) Do you want the chest to be a "special chest" too, because if you don't, there is no other way I can think of making your plugin a reality?
    2) Using a command to create a special button is not professional in my opinion because of the chance of multiple buttons being in the same area. Would a wand (like in world edit) be a better choice?
     
  7. Offline

    And7rey

    Yes world edit flag would be good , f.e.: all the chests and buttons in that area are 'special' , and yeah the chest would be also 'special' , the post office isn't actually important , the whole thing can be anywhere , so when a player puts items into the chest and pushes the button , the items disappear , and get saved , then just a command and finished. The other button is a different kind of a button would be the 'pickup' button , there would be only 1 'pickup' button but there can be more than 1 'special chests' and 'special buttons' , and the buttons should be linked to a chest.

    When a player presses this "special" button, he/she gets his/her packages. --> That would be the 'pickup' button

    2 kinds of buttons: special (linked to chests to pack the items and remove from the chest)
    pickup (puts all the items into the players inventory , if someone sent him a package , and doesn't give him the items as long as he/she hasn't enough space in his/her inventory.


    [edit by JaguarJo: merged posts. Please use the edit option instead of double-posting. Thanks!]
     
  8. Offline

    yellowfuzz

    Well, as long as there are special chests, there will be no need for special buttons.
    I thought special buttons were the pickup button (sorry).
    Well, if this is good for you, I'll try to get started soon! :)
     
  9. Offline

    And7rey

    I'm sorry , there's actually no need for a special chest , just for a special button linked to a chest , because the items must disappear to make sure that nobody steals them and the package can't be sent as long as the button isn't pushed. Pushing the button -> packing the items
     
  10. Offline

    yellowfuzz

    Well, that could cause players to steal items in a 15 second duration (when players put items in the chest).
     
  11. Offline

    And7rey

    I would make little rooms and doors get closed behind the player and stay closed as long as he/she is in the room
     
  12. Offline

    yellowfuzz

    sure! Ok, i'll get started!
     
  13. Online

    timtower Administrator Administrator Moderator

    yellowfuzz Virtual chest that doesn't exist in the world that you open with a button?
     
  14. Offline

    And7rey

  15. Offline

    yellowfuzz

    Oh, and the cleanup button will be located on the chest, next to it, or both?

    @timtower this "virtual chest" will be a hashmap.


    [edit by JaguarJo: merged posts. Please use the edit option instead of double-posting. Thanks!]
     
  16. Offline

    And7rey

    It would be under the chest , but not directly , 1 block in the front , I mean , the chest would be on a block and on that block would be the button
     
  17. Online

    timtower Administrator Administrator Moderator

    Was more thinking of a new class that implements InventoryHolder so that you have a ready to go inventory to open.
    After I said that first thing I noticed that that isn't what the OP wanted
     
  18. Offline

    yellowfuzz

    oh ok... that would be easy!

    I like that idea too! maybe I could create a plugin called Post Office Plus or something after I'm done with this! (assuming you give me permission)


    [edit by JaguarJo: merged posts.]
     
  19. Offline

    And7rey

  20. Offline

    yellowfuzz

    i'm assuming this will be on 1.7.9 (beta build) craftbukkit. reply if i'm incorrect.

    you can't make it more simpler than that. Thanks, but i got the idea though. :D


    [edit by JaguarJo: merged posts.]
     
  21. Offline

    And7rey

    Yes. but there isn't actually big difference between 1.7 versions, is it? :D
     
  22. Online

    timtower Administrator Administrator Moderator

    Who are you asking permission from?
     
  23. Offline

    yellowfuzz

    You, and that was a (very bad inside) joke too.
     
  24. Online

    timtower Administrator Administrator Moderator

    Asking permission to use an idea... Let me think about that :p
    I don't mind what people do with the stuff I suggest.
    Don't like it when people modify / fork my plugins without telling me though, but that is a different story.
    Good luck on this plugin ;)
     
  25. Offline

    yellowfuzz

    thanks guys, and I hope I remember to save a copy of it every five minutes so nothing gets "bugged" up!

    lol... i spent like 30 minutes trying to fix PlayerInteractEvent when the real problem was forgetting this:
    Code:java
    1. getServer().getPluginManager().registerEvents(this, this);
    2.  


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

    And7rey

    I'm so excited, when is it about going to be finished? :D
     
  27. Offline

    yellowfuzz

    probably around today... i'm almost half way finished.
     
  28. Offline

    And7rey

    that's awesome , hope players like it too xd
     
  29. Offline

    yellowfuzz

    ok half way finished... accidently took a nap... but, i'll still get it done by today :p
     
  30. Offline

    And7rey

    I took 2 naps today , couldn't sleep yesterday , it was hot...
     
Thread Status:
Not open for further replies.

Share This Page