插件介绍
Rust 的完整酒店系统
Click here for a demo
Looking for a Copy/Paste Hotel.. Check out this one By HardStyle
Hotel is a completely automated room rental system for Rust
主要用途
主要用于hotel、PVE、protection、rent等服务端功能。 本插件由 shady14u 发布,当前目录记录版本为 v2.0.29,uMod 累计下载 14,661 次。
适用场景
- PVE、活动服或任务玩法服务器
功能分类
查看 uMod 官方英文简介
Complete Hotel System for Rust
权限节点
hotel.adminrequired admin only permission for hotel setup
hotel.extendrequired player permission for /hotel_extend command
hotel.renterdefault hotel permission, you can add and assign with hotel.admin permission
授权示例:oxide.grant user 玩家名 权限节点;撤销使用 oxide.revoke。
指令说明
Player Commands (oxide permission: hotel.extend):
/rooms => Lists the players rooms and the time remaining for each
/hotel_extend {NAME} => Extends the players stay, by adding the rent duration to the current checkout date/time, for an additional fee. Allows player to rent their room longer for more Cost.
Admin Commands (oxide permission: hotel.admin):
/hotel ARG1 ARG2 => Edit the hotel options
/hotel_disable {player} => Revokes Player hotel.renter Permission
/hotel_enable {player} => Grants Player hotel.renter Permission
/hotel_edit {NAME} => Starts Editing an existing Hotel with the {Name}
/hotel_list => Gets a list of the hotels
/hotel_new {NAME} => Creates a new hotel with the {Name}
/hotel_remove {NAME} => Remove the Hotel named {Name}
/hotel_reset => Remove ALL hotels Use with caution
/room optional:ROOMID reset => resets the room clear out the renter
/room optional:ROOMID duration XX => sets a NEW duration for the room in seconds (Room must be rented and it only affects current player's room duration)
相关依赖
- Zone Manager
- Backpacks
- Economics
- Human NPC
- Server Rewards
官方配置示例
**Example** Adding an NPC via HumanNpc:{
"adminGuiJson": "[{\"name\": \"HotelAdmin\",\"parent\": \"Overlay\",\"components\":[{\"type\":\"UnityEngine.UI.Image\",\"color\":\"0.1 0.1 0.1 0.7\",},\r\n {\"type\":\"RectTransform\",\"anchormin\": \"{xmin} {ymin}\", \"anchormax\": \"{xmax} {ymax}\"}]},{\"parent\": \"HotelAdmin\",\"components\":\r\n [{\"type\":\"UnityEngine.UI.Text\", \"text\":\"{msg}\",\"fontSize\":15, \"align\": \"MiddleLeft\"},{\"type\":\"RectTransform\",\r\n \"anchormin\": \"0.1 0.1\",\"anchormax\": \"1 1\" }]}]",
"authLevel": 2,
"enterZoneShowPlayerGUI": false,
"enterZoneShowRoom": true,
"KickHobos": true,
"mapMarker": "\t\t\t{name} Hotel\r\n{fnum} of {rnum} Rooms Available\r\n{rp} {rc} per {durHours} Hours",
"mapMarkerColor": "#710AC1",
"mapMarkerColorBorder": "#5FCEA8",
"mapMarkerRadius": 0.25,
"openDoorPlayerGUI": true,
"openDoorShowRoom": false,
"panelTimeOut": 10,
"panelXMax": "0.6",
"panelXMin": "0.3",
"panelYMax": "0.95",
"panelYMin": "0.6",
"playerGuiJson": "[{\"name\": \"HotelPlayer\",\"parent\": \"Overlay\",\"components\":[{\"type\":\"UnityEngine.UI.Image\",\"color\":\"0.1 0.1 0.1 0.7\",},\r\n {\"type\":\"RectTransform\",\"anchormin\": \"{pxmin} {pymin}\",\"anchormax\": \"{pxmax} {pymax}\"}]},{\"parent\": \"HotelPlayer\",\"components\":\r\n [{\"type\":\"UnityEngine.UI.Text\",\"text\":\"{msg}\",\"fontSize\":15,\"align\": \"MiddleLeft\",},{\"type\":\"RectTransform\",\"anchormin\": \"0.1 0.1\",\"anchormax\": \"1 0.8\"}]}]",
"useNPCShowPlayerGUI": true,
"useNPCShowRoom": true,
"xMax": "1.0",
"xMin": "0.65",
"yMax": "0.9",
"yMin": "0.6",
"blackListGuiJson": "[{\"name\": \"HotelBlackList\",\"parent\": \"Overlay\",\"components\":[{\"type\":\"UnityEngine.UI.Image\",\"color\":\"0.1 0.1 0.1 0.7\",},\r\n {\"type\":\"RectTransform\",\"anchormin\": \"{pxmin} {pymin}\",\"anchormax\": \"{pxmax} {pymax}\"}]},{\"parent\": \"HotelBlackList\",\"components\":\r\n [{\"type\":\"UnityEngine.UI.Text\",\"text\":\"{msg}\",\"fontSize\":15,\"align\": \"MiddleLeft\",},{\"type\":\"RectTransform\",\r\n \"anchormin\": \"0.1 0.1\",\"anchormax\": \"1 1\"}]}]",
"blackList": [
"explosive.timed"
],
"defaultZoneFlags": [
"lootself",
"nobuild",
"nocup",
"nodecay",
"noentitypickup",
"noplayerloot",
"nostash",
"notrade",
"pvpgod",
"sleepgod",
"undestr"
],
"showRoomCounterUi": true,
"counterUiAnchorMin": "0.11 0.97",
"counterUiAnchorMax": "0.28 0.995",
"counterUiTextColor": "0 1 0 1",
"counterUiTextSize": 12,
"hideUiForNonRenters": true
}更新日志
本站记录 uMod 官方插件信息。完整的历史更新日志请参阅 uMod 官方页面。
安装方法
- 确认服务器已安装 Oxide / uMod 或兼容的 Carbon 框架。
- 登录本站后点击"下载",由 uMod 官方地址获取作者发布的文件。
- 将 .cs 文件放入服务器的
oxide/plugins目录。 - 观察服务端控制台,确认插件编译并成功加载。
- 具体配置、权限、指令和依赖请查看原作者的 uMod 页面。
使用前注意
- Rust 更新后,请先确认插件是否仍兼容当前服务端版本。
- 修改配置前建议备份原配置文件,并在测试服验证后再部署到正式服。
- 若插件依赖其他扩展或库,以 uMod 原作者页面的最新说明为准。
- 本站中文内容用于辅助理解,遇到版本差异时以官方英文文档和源码为准。
中文介绍由 uMod 官方简介翻译整理。插件著作权、许可证、完整文档和最新发布状态均以原作者及 uMod 官方页面为准。