允许将存储监视器部署到更多容器类型
特征
- 允许将存储监视器部署到更多容器类型
- 每种容器类型的可配置位置和旋转
- 自助服务支持在配置中添加更多容器类型
提示:当容器中某个项目的堆栈量发生变化时,存储监视器不会在 rust 配套应用中实时更新,但您可以最小化(或关闭)应用,然后重新打开它以查看最新信息。
权限
此插件使用权限系统。若要分配权限,请使用 .若要删除权限,请使用 。
oxide.grant <user or group> <name or steam id> <permission>
oxide.revoke <user or group> <name or steam id> <permission>
注意:仅当相应容器类型的配置指定了 时,才需要权限。默认值适用于所有预加载的容器类型。"Require permission": true
false
storagemonitorcontrol.owner.all
— 只要在插件配置中启用了这些容器类型,具有此权限的玩家部署的所有容器都有资格接收存储监视器。
作为权限的替代方法,可以按容器类型授予权限。这些是从插件配置中自动生成的。all
storagemonitorcontrol.owner.bbq
storagemonitorcontrol.owner.coffinstorage
storagemonitorcontrol.owner.composter
storagemonitorcontrol.owner.crudeoutput
storagemonitorcontrol.owner.dropbox
storagemonitorcontrol.owner.electricfurnace
storagemonitorcontrol.owner.fridge
storagemonitorcontrol.owner.fuelstorage
storagemonitorcontrol.owner.furnace
storagemonitorcontrol.owner.furnace.large
storagemonitorcontrol.owner.guntrap
storagemonitorcontrol.owner.hitchtrough
storagemonitorcontrol.owner.hopperoutput
storagemonitorcontrol.owner.locker
storagemonitorcontrol.owner.mailbox
storagemonitorcontrol.owner.mixingtable
storagemonitorcontrol.owner.planter.small
storagemonitorcontrol.owner.planter.large
storagemonitorcontrol.owner.refinery_small
storagemonitorcontrol.owner.survivalfishtrap
storagemonitorcontrol.owner.woodbox
注意:当需要权限时,容器必须在玩家具有权限时部署,否则该容器在下次服务器重新启动之前将没有资格获得存储监视器。这可以根据要求进行改进。
配置
可以在目录下的文件中配置设置和选项。建议使用编辑器和验证器,以避免格式问题和语法错误。
StorageMonitorControl
config
默认配置(没有其他容器可以接收存储监视器):
{
"Containers": {
"bbq.deployed": {
"Enabled": false,
"Require permission": false,
"Position": {
"x": 0.1,
"y": 0.0,
"z": 0.3
},
"Rotation angles": {
"x": 0.0,
"y": 90.0,
"z": 0.0
}
},
"coffinstorage": {
"Enabled": false,
"Require permission": false,
"Position": {
"x": -1.15,
"y": 0.196,
"z": 0.0
},
"Rotation angles": {
"x": 90.0,
"y": 0.0,
"z": 90.0
}
},
"composter": {
"Enabled": false,
"Require permission": false,
"Position": {
"x": 0.0,
"y": 1.54,
"z": 0.4
}
},
"crudeoutput": {
"Enabled": false,
"Require permission": false,
"Position": {
"x": -0.4,
"y": 0.0,
"z": 2.5
},
"Rotation angles": {
"x": 0.0,
"y": 90.0,
"z": 0.0
}
},
"dropbox.deployed": {
"Enabled": false,
"Require permission": false,
"Position": {
"x": 0.3,
"y": 0.545,
"z": -0.155
},
"Rotation angles": {
"x": 0.0,
"y": 184.0,
"z": 0.0
}
},
"electricfurnace.deployed": {
"Enabled": false,
"Require permission": false,
"Position": {
"x": -0.135,
"y": 1.135,
"z": 0.14
}
},
"fridge.deployed": {
"Enabled": false,
"Require permission": false,
"Position": {
"x": -0.2,
"y": 1.995,
"z": 0.2
},
"Rotation angles": {
"x": 0.0,
"y": 10.0,
"z": 0.0
}
},
"fuelstorage": {
"Enabled": false,
"Require permission": false,
"Position": {
"x": -1.585,
"y": -0.034,
"z": 0.0
}
},
"furnace": {
"Enabled": false,
"Require permission": false,
"Position": {
"x": 0.0,
"y": 1.53,
"z": 0.05
}
},
"furnace.large": {
"Enabled": false,
"Require permission": false,
"Position": {
"x": 0.31,
"y": 0.748,
"z": -1.9
},
"Rotation angles": {
"x": 0.0,
"y": 190.0,
"z": 0.0
}
},
"guntrap.deployed": {
"Enabled": false,
"Require permission": false,
"Position": {
"x": 0.0,
"y": 0.032,
"z": -0.3
},
"Rotation angles": {
"x": 0.0,
"y": 180.0,
"z": 0.0
}
},
"hitchtrough.deployed": {
"Enabled": false,
"Require permission": false,
"Position": {
"x": -0.82,
"y": 0.65,
"z": 0.215
}
},
"hopperoutput": {
"Enabled": false,
"Require permission": false,
"Position": {
"x": -0.71,
"y": -0.02,
"z": 1.25
}
},
"locker.deployed": {
"Enabled": false,
"Require permission": false,
"Position": {
"x": -0.67,
"y": 2.238,
"z": 0.04
},
"Rotation angles": {
"x": 0.0,
"y": 10.0,
"z": 0.0
}
},
"mailbox.deployed": {
"Enabled": false,
"Require permission": false,
"Position": {
"x": 0.0,
"y": 1.327,
"z": 0.21
}
},
"mixingtable.deployed": {
"Enabled": false,
"Require permission": false,
"Position": {
"x": -0.9,
"y": 0.0,
"z": 0.0
}
},
"planter.small.deployed": {
"Enabled": false,
"Require permission": false,
"Position": {
"x": -1.22,
"y": 0.482,
"z": 0.3
}
},
"planter.large.deployed": {
"Enabled": false,
"Require permission": false,
"Position": {
"x": -1.22,
"y": 0.482,
"z": 1.22
}
},
"refinery_small_deployed": {
"Enabled": false,
"Require permission": false,
"Position": {
"x": 0.0,
"y": 2.477,
"z": 0.0
},
"Rotation angles": {
"x": 0.0,
"y": 180.0,
"z": 0.0
}
},
"survivalfishtrap.deployed": {
"Enabled": false,
"Require permission": false,
"Position": {
"x": 0.0,
"y": 0.4,
"z": -0.6
}
},
"woodbox_deployed": {
"Enabled": false,
"Require permission": false,
"Position": {
"x": -0.24,
"y": 0.55,
"z": 0.14
},
"Rotation angles": {
"x": 0.0,
"y": 10.0,
"z": 0.0
}
}
}
}
注:预制件是指用于采矿采石场和泵千斤顶的燃料容器。fuelstorage
每种容器类型都具有以下配置选项,这些选项在配置中映射到容器的预制件短名称。
Enabled
(true
或 ) — 必须使玩家能够将存储监视器部署到此类型的容器。false
true
Require permission
(true
或 ) — 虽然 ,只有由具有相应权限的玩家部署的此类容器才有资格接收存储监视器。false
true
- 注意:容器必须在玩家获得权限时部署,否则该容器在下次服务器重启之前将没有资格获得存储监视器。这可以根据要求进行改进。
Position
(x
, , ) — 存储监视器相对于父容器的位置。y
z
Rotation angles
— 相对于父容器的存储监视器的旋转。
插件的默认配置中提供了许多容器类型,但如果您知道容器的短预制件名称,也可以添加其他容器类型。如果您添加更多内容,请在插件的帮助论坛中发帖,建议将其添加到默认设置中,以便其他人可以从中受益。