ChestRegen 1.8

Create chests that regenerate over customize-able times!

  1. TheTealViper
    Contributors:
    TheTealViper
    PLEASE REVIEW & MAKE ANY POSSIBLE RECOMMENDATIONS IN DISCUSSION PAGE!

    Purpose:
    This plugin creates a chest that automatically restocks on a custom time interval! Possible uses are giving the first players to it get a reward, or maybe first person on in the morning or something! I'm not creative but I'm sure you can find some uses!

    Explanation
    Find a completely normal chest.
    1.png
    Setup the chests inventory to what you want constantly restocked.
    2.png
    Rules for command:
    - If you wish to add a custom time, add t:timeInSeconds to /cr create
    - If you wish to add a custom chest name, add n:Name to /cr create
    - You don't need to include either a t: or a n: value if you don't want to
    - If you want to include a space in your chest's name, use a '\' in its place
    (For example this chest's name would be _-Spawn Chest-_
    - Order of t: and n: doesn't matter, as long as they are either there or not
    3.png 4.png
    Upon creation fireworks will spray out and it will officially be made a regenerating chest.
    5.png
    If you now open the inventory, it will appear different. The name will take effect and if you click items something special happens.
    6.png
    When you click an item it is put directly into your inventory or the click is cancelled if your inventory is full so you can't just drop stuff on the ground and horde.
    7.png
    Now that you have made the regenerating chest, if you wish for it to begin regenerating, restart the server. Upon restart it will automatically regen and if you set the time too high it might spam an annoying message, you can disable that in the config. To restock on will, look at a regenerating chest and type /cr restock. It will restock, a (optional) firework will shoot off, and a (optional) message will broadcast alerting players of where the chest is!
    8.png
    An example of the message displayed upon regen...
    9.png
    Chest inventory restores to exact same state as when set!
    10.png


    Requirements:
    • Java 8, NOT JAVA 7.

    Commands:
    • /cr create [t:timeInSecondsForRestock] [n:nameOfChest]
    - Creates a regenerating chest out of the chest you are looking at
    • /cr remove
    - Removes the regenerating chest you are looking at
    • /cr restock
    - Restocks the regenerating chest you are looking at

    Permissions:
    = ChestRegen.admin - Gives you perms for everything

    Notes:
    • The configuration is somewhat in depth and can (possibly) be confusing. If you have any questions just let me know and I will help you out as fast as I can!
    • You can use ANY item in this! This includes custom enchantments, lore, item names, anything that you can add to an item!
    Config:
    Code (Text):
    ##########################################################
    #                   Chest Regen Config                   #
    ##########################################################

    Prefix: (ChestRegen)
    #This is the prefix before all messages from the plugin.

    Primary_Format: '&b&l'
    #This would make plugin name bold and blue. Make sure you put it all in proper order!

    Secondary_Format: '&c'
    #This would make help messages red.

    Announce_Chest_Restock: true
    #Announces when a chest has been automatically restocked.

    Chest_Restock_Fireworks: true
    #Launch fireworks off above automatically restocked chest?

    Announce_Manual_Chest_Restock: true
    #Announces when a chest has been automatically restocked.

    Manual_Chest_Restock_Fireworks: true
    #Launch fireworks off above manually restocked chest?

    ##########################################################
    #                      Permissions                       #
    ##########################################################

    # ChestRegen.admin
    #- Gives permissions to do all commands


    Donations: Although this plugin isn't very big, I don't charge for very much so if you wish to support me _- https://paypal.me/AaronSkeels -_

Recent Reviews

  1. WarOfTowns
    WarOfTowns
    5/5,
    Version: 1.8
    Amazing plugins from a amazing Dev :D Give fast answerd en plugin still works great at 1.12.2
    1. TheTealViper
      Author's Response
      Thanks for the review! Obviously this was coded years ago so it may be outdated but thanks for sticking around :)
  2. ingrownpenguin
    ingrownpenguin
    3/5,
    Version: 1.7
    Good idea but not working at the moment, when I create the chest the fireworks go off, the name of the chest changes but the time isn't set. when I take the item out of the chest if just instantly respawns and doesn't take the time into consideration, fix it and its 5 stars all day ;D
    1. TheTealViper
      Author's Response
      I'm sorry to hear that it doesn't work properly for you. I can assure you that it works on my machine as well as others. My advice is to make sure it's not throwing any errors to console, make sure that you reload after creating, and here is an example of the command: "/cr create t:10 n:&bExample"
  3. gyurix
    gyurix
    4/5,
    Version: 1.6
    Line 120: ((p.hasPermission("ChestRegen.admin")) || (p.isOp())

    DO NOT check permissions containing upcase characters and you don't need to care about the players op status. This is the work of the permission plugin, not yours.

    Also add a message, when the console tries to execute the command, an
    d make sure to compile it to java 7 and not to java 8.

    If you can do these thinks, I can give you 5 star :)
    1. TheTealViper
      Author's Response
      Thanks for the tips, I had no clue about the op permission thing. Also, the message to the console is a good idea. Any reason why I should not check for/use capitalized the perms?
  4. CloudeLecaw
    CloudeLecaw
    5/5,
    Version: 1.6
    A good Plugin :) Does what it said.

    Would be Better to see it in Java7/8 for more downloaders but u wrote in description its just for Java8 - so its ok
  5. Faceguy
    Faceguy
    5/5,
    Version: 1.6
    Works well, once you get the right file ;D

    I've been looking for a decent chest regen plugin looks like this one will fit the bill haha.
    1. TheTealViper
      Author's Response
      Thanks for the good review! Yesterday, unfortunately, I meant to update another plugin but updated this one. That got me 2 1 stars :(. Tell me if you find any issues or if you have any recommendations!
  6. CloudeLecaw
    CloudeLecaw
    1/5,
    Version: 1.4
    Currently u download something called MegaApplesPlus...
    So this is a faked Site - or u took the plugin of someone else?
    what ever - Here why just 1 Star in this rating

    5 possible Stars:

    +1 Start for the plugin description + the dev informs that u need Java 8 and it will not work in java 7.

    -1 Star because the description has no permissions - in discussion i found out it needs OP - No Plugin should need OP for setups ingame.

    -2 Star for Wrong plugin? (what ever u download there, its looks like its not ChestRegen 1.4 - The Pluginname tells you this Plugin is called MegaApplesPlus...

    -1 Star because its just Java8 - Most Servers today have still just java7
    a good Plugin should should be compiled currently for java7 and 8 to get more downloaders and users.
    1. TheTealViper
      Author's Response
      SO SORRY ABOUT THE MIXUP. I was updating many things at once and must have uploaded the wrong file. It is fixed now and the permissions are in the config but I will add them to the overview as well. Thanks for letting me know!
  7. gyurix
    gyurix
    1/5,
    Version: 1.4
    You have uploaded a totally different plugin, not the one, what is the description about. Also please make sure, that the server owners don't need to have java 8, because it's not yet supported by many server hosts.
    1. TheTealViper
      Author's Response
      SO SORRY ABOUT THE MIXUP. I was updating many things at once and must have uploaded the wrong file. I will consider downgrading it to support Java 7, thanks for your input! :D