一个简单的主页 /home 和 /sethome 插件!现在支持即将到来的 1.8 更新中的 UUID!
注意
如果您正在寻找具有完全相同功能但拥有更多特性的插件,请查看此处!
命令
用户命令
/home - 传送到你的家
/sethome - 设置你的家
/home set - 同样用于设置你的家
/home help - 查看你有权使用的主页命令(即 /home help)
管理员命令
/home [playerName] - 传送到某玩家的家
/sethome [playerName] - 设置某玩家的家
/home set [playerName] - 同样用于设置某玩家的家
权限
用户权限
- hoams.gohome - 允许前往自己的家
- hoams.sethome - 允许设置自己的家
- hoams.respawnhome - 拥有此节点的用户将在家中重生(如果启用了此选项)
- hoams.set.self - 同样允许设置自己的家
- hoams.gohome.self - 同样允许前往自己的家
- hoams.help - 允许查看 hoams 帮助 (/home help)
管理员权限
- hoams.set.other - 允许设置其他玩家的家
- hoams.gohome.other - 允许前往其他玩家的家
- hoams.immune - 该玩家免受其他管理员设置其家的影响
- hoams.override - 拥有此权限的玩家能够设置拥有 hoams.immune 权限的玩家的家园
- hoams.reload - 允许重新加载 hoams config.yml
权限预设
- hoams.user - 授予“用户权限”下列出的所有能力
- hoams.admin - 授予“管理员权限”下列出的所有能力(除了 hoams.override)
- hoams.* - 授予所有 hoams 权限节点
配置
这是默认的配置信息:
Use_Sethome: true Go_home_on_death: true Only_print_homes: false
Use_SetHome - 如果此项为 true,则 /sethome 将生效。如果此项为 false,则 /sethome 将不生效。
Go_home_on_death - 如果此项为 true,玩家死亡后将在家中重生。如果此项为 false,玩家死亡后将在出生点重生。
Only_print_homes - 如果此项为 true,则插件只会向玩家打印其家的坐标,而不是将其传送过去。然而,插件仍会将玩家传送到他们不拥有的其他玩家的家(通过 hoams.gohome.other)。
源码
源码可在这里找到。
说明
如果您是从旧版本的 hoams 升级到支持 UUID 的版本,建议备份您的 config.yml 以防万一。虽然不太可能发生坏事,而且我认为插件在转换过程中已经考虑得很周全,但没有完美的代码。此外,如果插件尝试转换并发现某个名称无法找到对应的 UUID,它将保留该名称。插件仅在配置文件中找到非 UUID 格式的名称时才会尝试更新为 UUID。要让 hoams 停止尝试执行此操作,您需要手动删除这些条目或将名称替换为其对应的 UUID。
另外,您不能为离线玩家设置家。我将来可能会添加相关功能,但插件如何知道您是输错了玩家名称还是故意输入的呢?您可能为离线玩家设置了家,但输错了名字,而您和插件都无法察觉。随着 UUID 系统的引入,这种问题出现的可能性大大增加。
UUID 数据用法
UUID 来自 。ID 仅用于 hoams 插件内部,以跟踪用户数据(家)。
A simple /home and /sethome plugin! Now with UUID support for the upcoming 1.8 update!
Attention
If you're looking for a plugin with the exact same functionality, but a lot more features, take a look here!
Commands
User Commands
/home - Takes you to your home
/sethome - Sets your home
/home set - Also sets your home
/home help - Views the home commands (that you are allowed to use)
Admin Commands
/home [playerName] - takes you to a player's home
/sethome [playerName] - sets a player's home
/home set [playerName] - also sets a player's home
Permissions
User Permissions
- hoams.gohome - Allows one to go home
- hoams.sethome - Allows one to set their home
- hoams.respawnhome - Users with this node will respawn at their home (If this option is enabled)
- hoams.set.self - Also allows one to set their home
- hoams.gohome.self - Also allows one to go to their home
- hoams.help - Allows one to view the hoams help (/home help)
Admin Permissions
- hoams.set.other - Allows one to set other people's homes
- hoams.gohome.other - Allows one to go to other people's homes
- hoams.immune - Player is immune to other admins setting their home
- hoams.override - Players with this permission can set the home of players with hoams.immune
- hoams.reload - Allows one to reload the hoams config.yml
Permissions Presets
- hoams.user - Gives all of the abilities listed under User Permissions
- hoams.admin - Gives all of the abilities listed under Admin Permissions (except hoams.override)
- hoams.* - Gives all hoams permissions nodes
Config
This is the default config info:
Use_Sethome: true Go_home_on_death: true Only_print_homes: false
Use_SetHome - If this is true, /sethome, will work. If this is false, /sethome will not work.
Go_home_on_death - If this is true, players will respawn at home after they die. If this is false, players will respawn at the spawn after they die.
Only_print_homes - If this is true, then the plugin will only print the coordinates to the player's home, instead of teleporting them there. However, the plugin will still teleport players to homes that they do not own (hoams.gohome.other).
Source
Source can be found Here.
Notice
If you are going from an older version of hoams to a version that supports uuids, you should back up your config.yml just in case anything bad happens. Nothing bad should happen, and I think the plugin covers it's bases pretty well in the conversion process, but there is no such thing as perfect code. Also, if the plugin tries to convert and it finds a name that it can't find a uuid for, it will just keep the name there. The plugin only tries to update to uuids when it finds names in the config that are not in uuid format. To get hoams to stop trying to do this, you will have to manually remove the entries/replace the names with their uuid equivalents.
Also, you cannot set the homes for offline players. I might add a feature for it in the future, but how is the plugin supposed to know if you've mistyped the player name or not? You may have set an offline player's home, but made a typo, and you'd never know it, and the plugin would never know it either. This possibility of this issue coming up is multiplied greatly with the introduction of the uuid system.
UUID Data Usage
The uuids come from . The ids are used only within the hoams plugin to keep track of user data (homes).
下载 Hoams
下载 Hoams
下载 Hoams
下载 Hoams
下载 Hoams
下载 Hoams
下载 Hoams
下载 Hoams
3.0.4 - 默认情况下,玩家现在可以使用标准命令(设置家、回家)。如果你不希望他们拥有这些命令的访问权限,你需要安装一个权限插件来覆盖默认设置。不过,现在此插件不再依赖权限插件,使其更加“即插即用”,适合极简类型的服务器。
- 添加了一个配置选项,允许插件仅打印坐标而不传送玩家,如果服务器管理员有此需求的话。
3.0.1 - 当 config.yml 中没有任何家的记录时,不再报错。
3.0.0 - 支持 UUID
2.1.7 - 基于 1.7.2-R0.2 编译
- 修改了一些底层逻辑
- 修复了关于玩家死亡后是否回家的一个 bug
- 修复了一些消息提示
- 你现在可以前往离线玩家的家
2.0.1 - 基于 1.6.2-R0.1 编译
2.0.0 - 完全重写代码,玩家可以前往其他玩家的家,玩家可以设置其他人的家,更好的权限系统,更新到 1.6.1,可能的 bug 修复,从碳水化合物分配器中移除了变形牛,添加了家园用户之间的层级关系,添加了帮助菜单
1.1.1 - 修复了潜在的权限问题,更新到 1.5.1
1.0.1 - 正式初始版本,修复了尝试传送到不存在的世界时插件崩溃的问题
1.0 - 初始版本
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
一个高度兼容、功能完善且稳定的 TPA 模组
插件
创建用户友好的菜单以前往不同的世界
插件
更快速的直线轨道矿车、链式连接列车、熔炉机车,以及原版红石信号!
插件
城镇现在可以要求建造具有特定功能的建筑
插件
传送至你或他人的商店!
评论 0
登录后参与评分
还没有评论,来抢沙发吧