插件介绍
日落和日出后自动打开和关闭灯笼
Night Lantern automatically turns ON lanterns/ovens/searchlights 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.
主要用途
主要用于lantern、time、sunset、sunrise等服务端功能。 本插件由 k1lly0u 发布,当前目录记录版本为 v2.1.2,uMod 累计下载 74,050 次。
适用场景
- 希望扩展原版服务器功能的服主
功能分类
查看 uMod 官方英文简介
Automatically turns ON and OFF lanterns after sunset and sunrise
权限节点
nightlantern.global- Required to toggle auto-lights across the entire server
nightlantern.campfire - Required to toggle automation on campfires you own
nightlantern.firepit - Required to toggle automation on firepits you own
nightlantern.fireplace - Required to toggle automation on fireplaces you own
nightlantern.furnace - Required to toggle automation on furnaces you own
nightlantern.largefurnace - Required to toggle automation on large funacaes you own
nightlantern.lanterns - Required to toggle automation on lanterns you own
nightlantern.jackolantern - Required to toggle automation on jack'o'lanterns you own
nightlantern.tunalight - Required to toggle automation on tuna can lamps you own
nightlantern.searchlight - Required to toggle automation on searchlights you own
nightlantern.refinery- Required to toggle automation on refineries you own
nightlantern.cursedcauldren- Required to toggle automation on cursed cauldrens you own
nightlantern.chineselantern- Required to toggle automation on chinese lanterns you own
授权示例:oxide.grant user 玩家名 权限节点;撤销使用 oxide.revoke。
指令说明
/lantern global - Toggle lights and automation on/off across the whole server
/lantern campfire - Toggle automation on campfires 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
相关依赖
- No Fuel Requirements
- Flying Carpet
- Raidable Bases
配置说明
{ "Light Settings": { "BBQ": { "This type is enabled": true, "This type consumes fuel": false, "This type consumes fuel when toggled by a player": false, "This type starts cooking items when toggled by plugin": false, "This type can be toggled by the owner": true, "This type requires permission to be toggled by the owner": true }, "Campfire": { "This type is enabled": true, "This type consumes fuel": false, "This type consumes fuel when toggled by a player": true, "This type starts cooking items when toggled by plugin": true, "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 consumes fuel when toggled by a player": false, "This type starts cooking items when toggled by plugin": 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 consumes fuel when toggled by a player": false, "This type starts cooking items when toggled by plugin": 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 consumes fuel when toggled by a player": false, "This type starts cooking items when toggled by plugin": 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 consumes fuel when toggled by a player": false, "This type starts cooking items when toggled by plugin": 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 consumes fuel when toggled by a player": false, "This type starts cooking items when toggled by plugin": 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 consumes fuel when toggled by a player": false, "This type starts cooking items when toggled by plugin": 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 consumes fuel when toggled by a player": false, "This type starts cooking items when toggled by plugin": 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 consumes fuel when toggled by a player": false, "This type starts cooking items when toggled by plugin": 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": false, "This type consumes fuel when toggled by a player": false, "This type starts cooking items when toggled by plugin": false, "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": false, "This type consumes fuel when toggled by a player": false, "This type starts cooking items when toggled by plugin": false, "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": false, "This type consumes fuel when toggled by a player": false, "This type starts cooking items when toggled by plugin": false, "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": 1, "Patch": 0 } }
官方配置示例
{
"Light Settings": {
"BBQ": {
"This type is enabled": true,
"This type consumes fuel": false,
"This type consumes fuel when toggled by a player": false,
"This type starts cooking items when toggled by plugin": false,
"This type can be toggled by the owner": true,
"This type requires permission to be toggled by the owner": true
},
"Campfire": {
"This type is enabled": true,
"This type consumes fuel": false,
"This type consumes fuel when toggled by a player": true,
"This type starts cooking items when toggled by plugin": true,
"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 consumes fuel when toggled by a player": false,
"This type starts cooking items when toggled by plugin": 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 consumes fuel when toggled by a player": false,
"This type starts cooking items when toggled by plugin": 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 consumes fuel when toggled by a player": false,
"This type starts cooking items when toggled by plugin": 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 consumes fuel when toggled by a player": false,
"This type starts cooking items when toggled by plugin": 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 consumes fuel when toggled by a player": false,
"This type starts cooking items when toggled by plugin": 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 consumes fuel when toggled by a player": false,
"This type starts cooking items when toggled by plugin": 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 consumes fuel when toggled by a player": false,
"This type starts cooking items when toggled by plugin": 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 consumes fuel when toggled by a player": false,
"This type starts cooking items when toggled by plugin": 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": false,
"This type consumes fuel when toggled by a player": false,
"This type starts cooking items when toggled by plugin": false,
"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": false,
"This type consumes fuel when toggled by a player": false,
"This type starts cooking items when toggled by plugin": false,
"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": false,
"This type consumes fuel when toggled by a player": false,
"This type starts cooking items when toggled by plugin": false,
"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": 1,
"Patch": 0
}
}object OnNightLanternToggle(BaseEntity entity, bool toggleOn) // Called prior to toggling a light更新日志
本站记录 uMod 官方插件信息。完整的历史更新日志请参阅 uMod 官方页面。
安装方法
- 确认服务器已安装 Oxide / uMod 或兼容的 Carbon 框架。
- 登录本站后点击"下载",由 uMod 官方地址获取作者发布的文件。
- 将 .cs 文件放入服务器的
oxide/plugins目录。 - 观察服务端控制台,确认插件编译并成功加载。
- 具体配置、权限、指令和依赖请查看原作者的 uMod 页面。
使用前注意
- Rust 更新后,请先确认插件是否仍兼容当前服务端版本。
- 修改配置前建议备份原配置文件,并在测试服验证后再部署到正式服。
- 若插件依赖其他扩展或库,以 uMod 原作者页面的最新说明为准。
- 本站中文内容用于辅助理解,遇到版本差异时以官方英文文档和源码为准。
中文介绍由 uMod 官方简介翻译整理。插件著作权、许可证、完整文档和最新发布状态均以原作者及 uMod 官方页面为准。