refill chest/dispensers

Discussion in 'Archived: Plugin Requests' started by YourSoSerious, May 7, 2013.

  1. Offline

    YourSoSerious

    I'm looking for a plugin that will refill chests and dispensers over a set time - every 6 or so hours.
    I also want it so that its different for each user. When some one opens a chest/dispenser and takes the items they will have to wait till it refills, but the items are still there for the other player who has not taken the items yet.

    Do you understand what i mean or am i making it over complicated? I can't seem to find a plugin that has the 2nd feature.
     
  2. Offline

    timtower Administrator Administrator Moderator

    The second feature will require loads of work, you need to save an inventory for every player.
     
  3. Offline

    YourSoSerious

    Cheers for the replay,

    Do you know any plugin that is similar to the one i'm trying to recreate? I've been searching but no luck.
     
  4. Offline

    timtower Administrator Administrator Moderator

    Was trying to create something like this a time ago, was getting stuck on saving the inventory's
     
  5. Offline

    YourSoSerious

    The way i'm working it is, donators can have free items every 6hrs or so but they have to collect it from a chest.

    Looks like i have to get /kits working i suppose. Cheers for your help thought mate!
     
  6. Offline

    Garris0n

    timtower
    It would be simpler than that if it's what I think he means, you'd only have to save when each player can open the chest again and see the same inventory as everybody else. Correct me if I'm wrong here.
     
  7. Offline

    YourSoSerious

    *Hovering about encase theirs a possibility*
     
  8. Offline

    timtower Administrator Administrator Moderator

    You need to store what is in the chest between sessions, or you won't know what was in the chest after a server restart
     
  9. Offline

    Garris0n

    Ah ok I see what you mean now.

    I'm not sure it'd be too difficult though, just save a list of ItemStacks for each player name. You can directly save and load ItemStacks from yml nowadays.
     
    timtower likes this.
  10. Offline

    OwenBear

    This sounds like an amazing plugin i've been looking for something like this be when we have events like parkour and mazes. so that they can be done more than once but the problem was that the restocking was a pain and if one person did it then no one else could get the items until i restocked.
     

Share This Page