Random chest plugin

Can someone make a plugin that allows you to customize what can spawn inside a chest like maybe a famas can spawn in one instance or a g36c in another case, and also allow you to change the chance of the item spawning and the time between each spawns after it’s looted, So if a chest is looted and nothing is taken it can’t be opened until it gets refilled