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. its based on Box (container) ID, so if you will use like CopyPaste plugin to move your building, replenish will not work since the box/container will get a new ID
     
  2. will it respawn the loot only or the container too if someone destroy it?
     
  3. Container gets ID, replenish looks for this ID to refil all INSIDE the CONTAINER. So if box is destroyed then the ID doesnt anymore exist = no replenish.
     
  4. Yo! Excellent plugin you got here. I installed it but found out that it actually stacks everything it replenishes. So if I put items in a stacks of certain amount, and the replenish kicks in, it just stacks them all into one slot. I use StackSizeController so there's that.

    Example: instead of having chicken titties in stacks of 20, it creates a stack of 300.

    It's nothing serious, but I was just wondering if it's possible for this mod to remember the stack amounts etc? Might be complicated but anyway. :)
     
  5. I'm sure it would be a lot easier to just change your StackSizeController.json for so called 'chicken titties' (couldn't find that one in the config though) to 20, than to rewrite this plugin just to allow your chicken titties to stack nicely.. Just a thought lol
     
  6. I know that's the easiest thing to do. But as you can probably notice from my post, I were simply asking if it's possible to do that and I also noted that it might be complicated. Also, I'm sure you know what I meant by chicken titties so yeah.
     
  7. i set replenish for 10800 ( 3h) plugin dont replenish box. if i test on 30s etc work well :(? I restarting server 3 times a day
     
  8. Nice plugin! Can't get it to work with new vending machine. Would be cool as an admin to have vending machine stock that would replenish. Cheers!
     
  9. ditto....
    I am running a PVE township on my server, so auto refilling water barrels and vending machines would be magic.
     
  10. Code:
    i set replenish for 10800 ( 3h) plugin dont replenish box. if i test on 30s etc work well :(? I restarting server 3 times a day
    up?:(
     
  11. When updating Replenish, please add replenish option for vending machine, locker if they don't exist. Cheers!

    Edit:
    Open your replenish.cs file and change
    Code:
    if(player.IsAdmin() && !UsePermissionsOnly) return true;
    to
    Code:
    if(player.IsAdmin && !UsePermissionsOnly) return true;
    Then to add vending machine, scroll down to the container types listed and add these lines:
    Code:
    {"vending.machine", "Vending Machine"},
     
    Last edited by a moderator: Mar 10, 2017
  12. Any idea how to add lockers?
     
  13. If you just add locker to the container type, it doesn't seem to replenish the locker. Instead it clears it's contents. Not sure how to fix but it's beyond me
     
  14. Thank you for the quick response! Guess we'll wait and see if it gets added into the existing functionality.
     
  15. Very stupid question go easy on me but how do i fix this?
    Error while compiling: Replenish.cs(488,17): error CS1955: The member `BasePlayer.IsAdmin' cannot be used as method or delegate
     
  16. If I'm not mistaken see the post above from Findels that talks about removing the () from a section of code in the file. Or download the update :)
     
  17. Thank You worked like a champ! Looked over that thinking he was talking about vending.
     
  18. Mughisi updated Replenish with a new update entry:

    1.3.2

     
  19. Locker support please.
     
  20. Asking for a request, a feature to be added.
    Have a toggle where your inventory can be replenished (Mostly Admin) when giving away stuff to people via dropping or View Inventory Plugin. Thanks.