How to download
https://umod.org/plugins/RecycleManager.cs?version=2.0.0&branch=beta
Documentation
https://github.com/WheteThunger/RecycleManager
High level objectives of this update
- Assign a permissive open-source license, to encourage developers to contribute to and maintain the plugin in the future
- Narrow the plugin's scope to focus on how recyclers process items, rather than trying to allow players to spawn recyclers
- Standardize the configuration style, by placing all configuration in the config file, instead of using both a config file and a data file
- Only add configuration for items that have been customized, so future updates to the game that affect crafting/recycling will automatically apply without having to regenerate/recustomize the config
- Add support for custom items
- Reduce likelihood of conflicts with other plugins
- Provide hooks to allow other plugins to cooperate with this plugin, to resolve potential hook conflicts
Change log
Backwards incompatible changes
- The data file is no longer used. All configuration is now done in the config file
- Removed commands which generate or refresh the data file
- Removed feature for spawning recyclers, since there are better plugins for such use cases
- Removed
OnRecycleItemOutputhook, since the new OxideOnItemRecycleAmounthook works the same
New features
- Added feature to prevent recycling of custom items, according to their skin ID and/or display name
- Added feature to customize the recycling output of custom items, according to their skin ID and/or display name
- Added feature where recyclers can output custom items, by assigning a skin ID and/or display name to the outputs
- Added
recyclemanager.add <item id or short name>command to add an item to the config for overriding its output - Added
recyclemanager.reset <item id or short name>command to add or refresh an item in the config for overriding its output
Improvements
- Improved server performance when recycling large stacks of items
Bug fixes
- Fixed issue where the recycler would stop recycling after one item
- Replaced deprecated
OnRecycleItemhook
For developers
- Added
object OnRecycleManagerItemRecyclable(Item item, Recycler recycler)hook - Added
object OnRecycleManagerSpeed(Recycler recycler, BasePlayer player)hook - Added
object OnRecycleManagerRecycle(Item item, Recycler recycler)hook
Looking for feedback!
Please let us know what you think.
- Is this update useful to you?
- Is this update annoying?
- Are any features missing that you would like to see added?