Recycle allows players to recycle items into their resources.
recycle.use
-- Allows players to use the recyclerrecycle.admin
-- Allows players to destroy all recyclers or dropped bags currently created by Recyclerecycle.bypass
-- Allows players to bypass the cooldown of recycling
recycle
-- Opens a recycler, can be configuredrecycle reloadconfig
-- Reloads the configuration filepurgerecyclers
-- Destroys all recyclers and drops their contents to a locked bag at the owner's positionpurgebags
-- Destroys all bags created by Recycle
{
"Settings": {
"Command To Open Recycler": "recycle",
"Cooldown (in minutes)": 5.0,
"Maximum Radiation": 1.0,
"Refund Ratio": 0.5,
"NPCs Only": false,
"Allowed In Safe Zones": true,
"Instant Recycling": false,
"Send Recycled Items To Inventory": true,
"Send Items To Inventory Before Bag": true,
"NPC Ids": [],
"Recyclable Types": [
"Ammunition",
"Attire",
"Component",
"Construction",
"Electrical",
"Fun",
"Items",
"Medical",
"Misc",
"Resources",
"Tool",
"Traps",
"Weapon"
],
"Blacklisted Items": []
},
"VERSION": "3.1.9"
}
Invoked when checking if a recycler is safe to open.
private bool CanOpenRecycler(BasePlayer player)
Adds an NPC to the NPC list
private void AddNPC(string npcID)
Removes an NPC from the NPC list
private void RemoveNPC(string npcID)
Checks if an entity is a recycler managed by Recycler.
private bool IsRecycleBox(BaseNetworkable entity)
Checks if a player can safely open a recycler.
private bool CanPlayerOpenRecycler(BasePlayer player)
Checks if the player is current on cooldown from using the recycler.
private bool IsOnCooldown(BasePlayer player)
Forcefully opens a recycler for the player
!! No checks are done, including calling the hook !!
private void OpenRecycler(BasePlayer player)
- Calytic, the original author of this plugin
- 5Dev24, for maintaining this plugin
- nivex, for maintaining this plugin