Replenish

Easily reset/replenish loot in storage boxes and containers after a certain amount of time.

Total Downloads: 1,542 - First Release: Jun 10, 2016 - Last Update: Apr 5, 2018

5/5, 11 likes
  1. Skrallex updated Replenish with a new update entry:

    1.2.0

     
  2. Skrallex updated Replenish with a new update entry:

    1.2.1


    [DOUBLEPOST=1469615578][/DOUBLEPOST]Let me know if you guys want other containers to be replenishable too. I added the ones that seemed most obvious, but haven't included things like quarries.
     
  3. Hello Skrallex,

    I just loaded Replenish 1.2.1 and I got this error:
     
  4. Have same error, just delete old config and data (make sure Replenish is unloaded before deleting data!!!) and also lang data files, then re-upload the newest version again and it will work ;) Sadly you will need to replenish all your boxes again but lol thats a minimum wage job ;)
    [DOUBLEPOST=1469628807][/DOUBLEPOST]
    Just wanted to post suggestion to add minning quarry :D also if you can water barrels, watter catchers (small and large) and the other water thing (not bucket) :)
     
  5. Unfortunately, you will need to delete the data and configuration files (in /data/ReplenishData.json and /confif/Replenish.json respectively). I forgot to mention this on the post, will update it tomorrow. If you're still having errors, also try deleting the Lang file, as some of them were changed but they won't necessarily automatically update.

    If you make a copy of your data file before you delete it, you should be able to copy over most of the old values, but you will have to do it manually I'm afraid.
     
  6. Thanks Skrallex & Brko! :)
     
  7. Skrallex updated Replenish with a new update entry:

    1.2.2

     
  8. Just curious what this plugin can be used for? kind of confused :) any examples?
     
  9. Uses are really up to your imagination. I've used it in my pvp arena as like a time-based power weapon (think Halo style), where a rocket launcher or some such might be in a box, when it's taken from the box it will respawn after a certain time. I've also used it in minigames so you don't need to keep restocking boxes. I added in the support for most inventories, rather than just boxes, more for completeness than actual necessity. You could also do it as a King of the Hill reward sort of thing, make the box replenish a small amount of resources every 5 minutes or something, so holding that location becomes worthwhile.

    Like I said, it's up to you how you want to implement it. I'll add some examples on the main post to help with the confusion.
     
  10. still a little confused... the items have to first be in ur inventory to go into box i thought it said?
    also i get the time based arena example... we did a heli arena once that this would of worked great for... just trying to think of other uses.
    id like to implement it just not sure what for yet lol.
     
  11. So if you add a bunch of items to the box (1x Rocket Launcher, 3x Rockets for example), then type /replenish_add and hit that box with a Hammer, the box will now be replenishing JUST the items that were in it before you hit it with the hammer. This means that once an item is taken from the box, it can be any item (even technically one that was added to the box by another player), and the default timer of 30 seconds has elapsed, the box will once again have EXACTLY 1x Rocket Launcher and 3x Rockets in it.

    Any items added to the box you have hit it with the hammer to specify it as replenishing will NOT be replenished, and will be deleted when the box does replenish. For example, continuing with the 1x Rocket Launcher and 3x Rockets example, if a player comes along and grabs the Rocket Launcher out, and puts their Pump Shotgun into the box, because they took the Rocket Launcher out, the box is marked to replenish after its default timer of 30 seconds. Once that timer elapses, everything in the box is deleted and 1x Rocket Launcher and 3x Rockets are placed into it again.

    There's a config option called RequireAllSlotsEmpty. By default this is false, but if changed to true, the box will only replenish once EVERY item has been taken from it, and the box is completely empty.

    Hopefully this makes sense, if you're still confused, the best way to understand it might just be to install it and have a play with it. You can change the replenish timer length to any number you want using /replenish_add <timeInSeconds>, where you replace <timeInSeconds> with an integer such as 1, 2, 5, 48932, etc.
     
  12. thats what i thought you meant but was confused because i guess i read the descrip wrong and thought you had to have the item in your inventory. its been a long night though lol. this would work perfect for our arenas we needed something like this when we did those. next time we do one i will definitely try this out and ill try to think of other uses also ty.
    one more question, is this for admin only or are players able to use it? was thinking that if players can use it wouldnt that be OP?
    thanks for taking the time to explain everything :)
     
  13. It has permissions, so it's only OP for players if you want it to be haha. By default, only admins can use it unless you grant the necessary perms to players.
     
  14. k cool, thanks again :)
     
  15. Hi Squire,

    Great plugin mate... just started using it on my little community server and it works a treat.

    Is it possible to add water barrels and catchers to the suported container list?

    TIA.
     
  16. Also Auto-turrets and other water -things ;)
     
  17. Sure, I'll get onto those when I next have a chance! :)
     
  18. Skrallex updated Replenish with a new update entry:

    1.3.0



    Alrighty, so Replenish should now support ALL containers, let me know if you have any issues with it. I haven't tested it with liquids (water) yet so it will be interesting to see what happens with that. Cheers guys.
     
  19. Skrallex updated Replenish with a new update entry:

    1.3.1

     
  20. If I move the building location will the replenish work?