FoodSpoil for PVE/RP [*works with Raidable Bases]
$5.99
Sold by: RustFlash- Description
- Reviews (0)
- Version History
- Discussions (2)
- Setup
- Product Enquiry
Description
Description
unreleased plugins only discord
Maybe you are interested in free plugins or you are interested in early updates, please have a look at my Discord and choose the role FLASH when joining. https://discord.gg/2ftdtaTQ6S
unreleased plugins only discord
Maybe you are interested in free plugins or you are interested in early updates, please have a look at my Discord and choose the role FLASH when joining. https://discord.gg/2ftdtaTQ6S
FoodSpoil Plugin Description
Add another option to your RP/PVE server to make life in Rust even more realistic.
Let your players use a fridge. If they don’t, their food will mold and decay.
With this plugin, you can automate this.
Set the time when something spoils in boxes.
You can also customize the list according to your needs. So if you prefer to have horses measuring, just replace this in your config!
Functions
Fügen sie die Benutzergruppe hinzu für die dieses Plugin gilt:
Config
After you have successfully started the plugin, you can define everything yourself in /oxide/config/FoodSpoil.json!
load, run, enjoy
Reviews (0)
Reviews
There are no reviews yet.
Only logged in customers who have purchased this product may leave a review.
Version History
- Added 🆕➔ | fix coffin storage
- Added ➔ | Added possibility in the config to hide chat messages
- Added ➔ | Added a warning system that sends a message to all players before the food spoils. ➔ | Introduced a new configuration option 'WarningTimeInSeconds' to set the duration between warning and spoilage. ➔ | Simplified container processing: All containers in the AllowedContainerShortnames list are now processed without additional type checking. ➔ | Improved code structure and readability with region directives. ➔ | Unnecessary checks for certain container types have been removed to simplify the spoiling process. ➔ | All text in the code has been updated to English to improve maintainability and collaboration.
-
Added
➔ | Fixing a compiler error
➔ | Use of HashSet
instead of List
- Added - Introduction of permissionCache to optimize permission queries. - Use of relevantContainers to reduce the number of containers to be checked. - Adding OnEntitySpawned and OnEntityKill hooks to keep relevantContainers up to date. - Refactoring of the Spoiling method to avoid code duplication. - Introduction of the ProcessContainer method for better code organization. - Use of C# 7.0+ features in the ReplaceSpoiledFood method. - Addition of the ValidateConfig method to check and correct the configuration. - Updated the OnServerInitialized method to initialize the relevant containers. Overall, the code is now: -Improved performance: execution time is reduced by caching permissions and pre-filtering relevant containers. - Optimized memory usage: Less redundant data is kept in memory. - Improved code structure: The code is better organized and easier to maintain. - More robust configuration: Validation of the configuration avoids potential errors. - More efficient container management: Dynamic updating of the relevant container list improves accuracy.
- Added 🆕| Changelogs 1.2.2 ➔ | Fixing the short name of the small wooden box ⚠️ If you have already edited or adapted your .json in /config/ to your requirements, simply replace the short name woodbox with woodbox_deployed ➔ | Some parts of the code have been optimized to remove duplicates and improve readability.⚠️
- Added 🆕| Changelogs ➔ | Added the UseRaidableBases property to the configuration, which is set to true by default. ➔ | Added a condition in the Spoiling() method to check if UseRaidableBases is enabled and the active user permission is not present. In this case, the spoiling logic is applied to storage containers that are not part of RaidableBases. ➔ | Some parts of the code have been optimized to remove duplicates and improve readability.
- Added 🆕| Changelogs ➔ | Fix time display minutes to seconds
Discussions (2)
2 thoughts on "FoodSpoil for PVE/RP [*works with Raidable Bases]"
Leave a reply
Setup
Plugin FAQ – How do I use this .zip/.7z file I just purchased on my server?
• First, you want to unzip the file. You can do so by just double-clicking it to open, then drag the contents to the desired location (you may need to install an external unzipping software if you don’t already have one such as 7zip or winrar)
• Next you will find either a structure of folders or just the .cs file itself (it’s the actual plugin file itself).
• After that just install the .cs (plugin file) into your …/oxide/plugins/ folder where you will install plugins you ever need to.
Additionally, here’s a great video that easily covers adding a plugin to your server if you need! https://youtu.be/yWC_p97FhQA
• Installation is not included with any products on the site, however, if needed we may assist if you reach out to our support.
Currently all products on Lone.Design will be contained within a zipped file which is the .7z or .zip that you see. I believe windows 10 and up can unzip on its own without 3rd party tools, but in that case, if you’re unfamiliar with zipped files here are 2 programs I recommend to easily unzip zipped files.
Video On How to Zip and Unzip: https://youtu.be/Ep-L3PjBPCk (TechInsider Youtube Channel)
Zipping/Unzipping Tools
Winrar https://www.rarlab.com (I used to use for years, but works great!)
7zip https://www.7-zip.org/a/7z2107-x64.exe (the one I use currently)
Would it be possible to exlude food in hotbar, inventory and backpacks, a parameter for each?
It might be a little difficult to recognize for a rental, but I could have explained it a little better in the description.
The spoil process only concerns containers that are viewed as such by oxide.
You can see the list in the config.
To answer your question, inventory, backpacks, campfires and grills do not count as containers and are exempt.