Night Lantern
0,00 €
Sold by: scalboxNight Lantern. Automatically turns ON and OFF lanterns after sunset and sunrise
- Description
- Additional information
- Reviews (1)
- Change Log
- Discussions (0)
- Product Enquiry
Description
This is a fork of this plugin https://umod.org/plugins/night-lantern, author: k1lly0u
The fork was created to add new features requested by the community, on a plugin that has not been updated by the owner for years.
Night Lantern
Night Lantern automatically turns ON lanterns after sunset and then turns them OFF after sunrise.
Sunset and sunrise hours can be set in configuration file; default values are 7.5 and 18.5. These values determine when lights should be turned on and off.
Enable which light types you would like to have automated by changing "This type is enabled"
 for the various types in the configuration.
Choose to make lights consume fuel, or run free of charge by changing "This type consumes fuel"
 for the various light types in the configuration.
Allow players to toggle what types of lights they want to be automated by changing "This type can be toggled by the owner"
 in the config. This only affects lights they have placed themselves.
Option to require that only players with the correct permission can toggle their own lights type by changing "This type requires permission to be toggled by the owner"
 in the configuration.
When a player toggles on/off a light type all of their lights of that type will also be turned on/off (if within the automation time span).
Has inbuilt support for No Fuel Requirements
Permissions
This plugin uses the permission system. To assign a permission, use oxide.grant <user or group> <name or steam id>. To remove a permission, use oxide.revoke <user or group> <name or steam id> <permission>.
nightlantern.global
– Required to toggle auto-lights across the entire servernightlantern.campfireÂ
– Required to toggle automation on campfires you ownnightlantern.candle
– Required to toggle automation on candle you ownnightlantern.firepitÂ
– Required to toggle automation on firepits you ownnightlantern.fireplaceÂ
– Required to toggle automation on fireplaces you ownnightlantern.furnaceÂ
– Required to toggle automation on furnaces you ownnightlantern.largefurnaceÂ
– Required to toggle automation on large funacaes you ownnightlantern.lanternsÂ
– Required to toggle automation on lanterns you ownnightlantern.jackolanternÂ
– Required to toggle automation on jack’o’lanterns you ownnightlantern.tunalightÂ
– Required to toggle automation on tuna can lamps you ownnightlantern.searchlightÂ
– Required to toggle automation on searchlights you ownnightlantern.refinery
– Required to toggle automation on refineries you ownnightlantern.cursedcauldren
– Required to toggle automation on cursed cauldrens you ownnightlantern.chineselantern
– Required to toggle automation on chinese lanterns you ownnightlantern.hobobarrel
– Required to toggle automation on HoboBarrel you ownnightlantern.torchHolder
– Required to toggle automation on TorchHolder you own
Chat Commands
/lantern global
 – Toggle lights and automation on/off across the whole server/lantern campfire
 – Toggle automation on campfires you own/lantern candle
– Toggle automation on candle you own/lantern firepit
 – Toggle automation on firepits you own/lantern fireplace
 – Toggle automation on fireplaces you own/lantern furnaceÂ
– Toggle automation on furnaces you own/lantern largefurnace
 – Toggle automation on large funaces you own/lantern lanterns
 – Toggle automation on lanterns you own/lantern jackolanternÂ
– Toggle automation on jack’o’lanterns you own/lantern tunalightÂ
– Toggle automation on tuna can lights you own/lantern searchlight
 – Toggle automation on searchlights you own/lantern refineryÂ
– Toggle automation on refineries you own/lantern cursedcauldren
 – Toggle automation on cursed cauldrens you own/lantern chineselantern
 – Toggle automation on chinese lanterns you own/lantern hobobarrel
– Toggle automation on HoboBarrel you own/lantern torchHolder
– Toggle automation on TorchHolder you own
Configuration
The settings and options can be configured in the NightLanternfile under the config directory. The use of an editor and validator is recommended to avoid formatting issues and syntax errors.
{ "Light Settings":{ "Campfire":{ "This type is enabled":true, "This type consumes fuel":false, "This type can be toggled by the owner":true, "This type requires permission to be toggled by the owner":true }, "Candle":{ "This type is enabled":true, "This type consumes fuel":false, "This type can be toggled by the owner":true, "This type requires permission to be toggled by the owner":true }, "Firepit":{ "This type is enabled":true, "This type consumes fuel":false, "This type can be toggled by the owner":true, "This type requires permission to be toggled by the owner":true }, "Fireplace":{ "This type is enabled":true, "This type consumes fuel":false, "This type can be toggled by the owner":true, "This type requires permission to be toggled by the owner":true }, "Furnace":{ "This type is enabled":true, "This type consumes fuel":false, "This type can be toggled by the owner":false, "This type requires permission to be toggled by the owner":false }, "JackOLantern":{ "This type is enabled":true, "This type consumes fuel":false, "This type can be toggled by the owner":true, "This type requires permission to be toggled by the owner":true }, "Lanterns":{ "This type is enabled":true, "This type consumes fuel":false, "This type can be toggled by the owner":true, "This type requires permission to be toggled by the owner":true }, "LargeFurnace":{ "This type is enabled":true, "This type consumes fuel":false, "This type can be toggled by the owner":true, "This type requires permission to be toggled by the owner":true }, "Searchlight":{ "This type is enabled":true, "This type consumes fuel":false, "This type can be toggled by the owner":true, "This type requires permission to be toggled by the owner":true }, "TunaLight":{ "This type is enabled":true, "This type consumes fuel":false, "This type can be toggled by the owner":true, "This type requires permission to be toggled by the owner":true }, "Refinery":{ "This type is enabled":true, "This type consumes fuel":true, "This type can be toggled by the owner":true, "This type requires permission to be toggled by the owner":true }, "ChineseLantern":{ "This type is enabled":true, "This type consumes fuel":true, "This type can be toggled by the owner":true, "This type requires permission to be toggled by the owner":true }, "CursedCauldren":{ "This type is enabled":true, "This type consumes fuel":true, "This type can be toggled by the owner":true, "This type requires permission to be toggled by the owner":true }, "HoboBarrel":{ "This type is enabled":true, "This type consumes fuel":true, "This type can be toggled by the owner":true, "This type requires permission to be toggled by the owner":true }, "TorchHolder":{ "This type is enabled":true, "This type consumes fuel":true, "This type can be toggled by the owner":true, "This type requires permission to be toggled by the owner":true } }, "Time autolights are disabled":7.5, "Time autolights are enabled":18.5, "Version":{ "Major":2, "Minor":0, "Patch":9 } }
For Developers
object OnNightLanternToggle(BaseEntity entity, bool toggleOn) // Called prior to toggling a light
Additional information
Framework | Carbon: Not tested, Oxide/Umod |
---|---|
Features | Fork |
1 review for Night Lantern
Only logged in customers who have purchased this product may leave a review.
White Chinese Lantern support
Added support for Torch Holder from the new Rust DLC
Support for HoboBarels
Support for candles
Forked version
Forked version 2.0.99. Version date 09/06/2021
Discussions
There are no discussions yet.
Angela Stücklin (verified owner) –
After two years of waiting at the original plugin, finally someone integrated candles and hobo barrels! Thank you very much scalbox! The candles and Hobo Barrels work wonderfully 🙂