简介
HorseHome 是一个简单的插件,允许玩家将马传送到之前设置的家。许多服务器允许玩家传送回家或出生点,但你的马呢?HorseHome 旨在尽可能高效地解决这个问题,而不会不必要地给予玩家额外的传送点/传送次数。
注意事项
- 在升级 HorseHome 之前(如果你当前使用的是早期版本,即 v1.2 及以下),请删除整个 HorseHome 文件夹以确保一切正常运行。仅在首次操作时需要这样做,之后就不会有问题了。
- 该插件已重写!我,Lazini,从零开始构建了该插件,因此它应该能完美运行。如果遇到任何错误,请报告给我。
- 如果要确保马被传送到其家中,请让另一名玩家位于该特定家的位置(以确保区块已加载)。
- 此插件可能包含(v1.3 及更早版本)一个未使用的、已过时的 Metrics 类文件。它完全没有使用,只是插件早期开发阶段的残留物。请忽略它,因为它将在后续更新中被删除。
命令
- /sethorsehome [name] - 为当前玩家所在位置的一匹马设置家。
- /horsehome [name] - 骑在马背上时,使玩家下马并将马传送到之前设置的名为“home”的马家;除非指定了具体的家名称,此时马将被传送到指定的家。
- /delhorsehome [name] - 用于删除马家。
- /horsehomes - 列出所有马家。
配置文件
示例如下:
HorseHomes:
- admin - 5
- vip - 3
- member - 1
其中等级例如 'admin',对应的最大允许马家数量分别为 5。
警告!等级与允许的马家数量之间的空格是必需的!!
因此权限将如下所示:
对于管理员:horsehomes.admin
对于 VIP:horsehomes.vip
对于普通成员:horsehomes.member
通用权限
horsehome.horsehome - 同时用于 /horsehome 命令和 /horsehomes 命令。
horsehome.sethorsehome - 用于 /sethorsehome 命令。
horsehome.delhorsehome - 用于 /delhorsehome 命令。
已知限制
- 跨世界传送马匹功能暂时禁用(v1.0.1 及以上版本)
- 如果马被骑乘在其他生物或实体上,它将无法传送。
- 有可能将马传送到墙壁内部。
待办事项
每个玩家拥有多个马家(配合权限控制) 已在 v1.1 中添加!
- 允许一名或多名玩家认领马匹,并防止其他玩家骑乘或与这些被认领的马交互。
- 通过命令查看马匹统计数据(速度、跳跃高度和生命值)的功能。
- 配置选项:允许玩家在传送马匹时一同传送。
- 配置选项:在 /horsehome 命令之间设置可选的冷却时间。
- 配置(权限?)选项:仅允许玩家传送已被驯服的马。
- 如果你有功能建议,请在评论中告诉我!
- 在传送马匹前增加权限检查,例如,如果用户试图将马传送到第 5 个家,请确保该用户至少拥有 5 个家的权限。
Introduction
HorseHome is a simple plugin that allows users teleport horses to a previously set home. Many servers allow players to teleport to homes or to spawn, but what about your horse? HorseHome aims to solve this problem as efficiently as possible, without unnecessarily giving players additional warps/teleports.
Notes
- Before upgrading HorseHome (if you are currently using an earlier version, aka v1.2 and down), delete the whole HorseHome folder to make sure everything works fine. Just for the first time, after that there should be no problems.
- The plugin has been rewritten! I, Lazini, built the plugin from the ground up, so it should work perfectly. Please report any bugs you come across.
- If you want to make sure the horse gets teleported back to its home, have another player at that specific home's location (in order to ensure that the chunk is loaded).
- This plugin may contain (v1.3 and before) an unused, deprecated Metrics class file. It is not used at all and it is just a residue from the plugin's early development. Please ignore it, as it will be deleted in the next updates.
Commands
- /sethorsehome [name] - Sets a home for a horse where the player is located.
- /horsehome [name] - While riding a horse, dismounts the player and sends the horse to the previously set horse home named "home" unless the home has been specified, in which case the horse is sent there.
- /delhorsehome [name] - Used to delete horse homes.
- /horsehomes - Lists all horse homes.
Configuration file
An example of it is this:
HorseHomes:
- admin - 5
- vip - 3
- member - 1
Where the rank is e.g. 'admin' and the max allowed horse homes are respectively 5.
Warning! The spaces between the ranks and the allowed horse homes are required!!
So the permissions would then be:
For an admin: horsehomes.admin
For a vip: horsehomes.vip
For a member: horsehomes.member
General permissions
horsehome.horsehome - Used both for the /horsehome command & the /horsehomes command.
horsehome.sethorsehome - Used for the /sethorsehome command.
horsehome.delhorsehome - Used for the /delhorsehome command.
Known Caveats
- Teleporting horses between worlds is temporarily disabled (v1.0.1 and up)
- If the horse is mounted on something else it won't teleport anywhere.
- Teleporting horses into walls is possible.
TODO List
Multiple horse homes per player (with permissions) Added in v1.1!
- Ability to claim horses for one or more players and prevent players from riding/interacting with horses claimed by other players.
- Ability to see the statistics (speed, jump height, & health) of a horse using a command.
- Config option to allow for players teleporting with the horse.
- Config option for optional cool downs between /horsehome uses.
- Config (Permissions?) option to only let players teleport tamed horses.
- If you have any feature requests let me know in the comments!
- Add permissions check before teleporting horses, IE, if user is trying to send horse to a 5th home, make sure user has permission for at least 5 homes.
评论 0
登录后参与评分
还没有评论,来抢沙发吧