
BHome 是 Boomerang 系列插件套件的一部分,旨在让你从该套件中自由选择所需的功能。
BHome Bukkit 开发站点:
功能特性
仅包含精华部分。
- 支持 Minecraft 1.8.x 和 1.9 版本
- 玩家可以设置、传送至以及移除已命名的家(home)位置。
- 最大可设置的家数量可通过权限进行配置。
- 传送提示信息可自定义。
- 家的数据保存在独立的玩家文件中。
相关插件
安装与配置
将 BHome.jar 放入你的 plugins 文件夹,然后重载或重启服务器。建议在任何插件正式使用前,先在测试服务器上进行测试和配置。BHome 默认预配置为允许每位玩家设置 5 个家。
宏变量
玩家传送消息可在 config.yml 中进行自定义。
&x - 颜色代码,其中 x 代表具体的颜色代码。

config.yml
在 config.yml 中输入字符串有时可能会比较棘手。建议在包含非字母数字内容(如格式化消息)的字符串周围使用单引号(')。
Mac 用户可能会发现使用双引号会带来困扰,因为 TextEdit 倾向于自动修改闭合引号,这将导致 YAML 解析失败。为解决此问题,请复制并粘贴引号。
max_homes
玩家最多可设置的家数量的默认值。如果你使用的是支持分组和按玩家设置权限的权限插件,你可以使用权限 bhome.max.x 来为每个分组设置家的数量上限,其中 x 代表该分组或玩家的家的最大数量。
teleport_message
当玩家使用 home 命令时,此消息会显示给传送中的玩家。如果该项为空,则不会向玩家显示任何消息。<br /><br />
示例:teleport_message: '&e咻……'</dd>
spawn_height
玩家生成位置高于方块的垂直距离。默认值为 0.5。<br /><br />
示例:teleport_message: 0.5
命令
sethome
将当前所在位置设置为玩家的家,可选命名。名称只能包含 A-Z 和 0-9。如果省略名称且玩家尚未设置任何家,则为当前位置设置一个名为 'home' 的家。
用法:sethome [name]
权限:bhome.home
</dd>
<dt>delhome</dt>
<dd>删除玩家指定的家。如果省略名称,则显示现有的家。<br /><br />
用法:delhome [name]<br />
权限:bhome.home
</dd>
<dt>home</dt>
<dd>传送至指定(可选)的家。如果省略名称且玩家仅设置了一个家,玩家将传送到该家的位置;否则,显示现有的家。<br /><br />
用法:home [home]<br />
权限:bhome.home
</dd>
<dt>bhome</dt>
<dd>Boomerang Home 的管理命令。<br /><br />
用法:bhome [ver[sion] | reload | max [number] | show <player> [home] | tp <player> [home]]<br />
权限:bhome.admin<br /><br />
示例:<br />
/bhome ver - 显示 Boomerang Home 的版本。<br />
/bhome reload - 重新加载 config.yml。<br />
/bhome max 10 - 将默认最大家数量设置为 10<br />
/bhome max - 显示当前默认的最大家数量。<br />
/bhome show <player> - 显示某玩家拥有的家列表。<br />
/bhome show <player> <home> - 显示某玩家某个家的坐标。<br />
/bhome tp <player> <home> - 将执行者传送至某玩家的某个家。
</dd>
</dl>
权限
bhome.admin - 允许使用管理命令
bhome.home - 允许玩家使用所有家相关命令(sethome、delhome、home)
bhome.* - 合并上述 admin 和 home 权限
bhome.max.# - 允许玩家或用户组设置 # 个家。覆盖 config.yml 中的设置
bhome.unlimited - 允许玩家或群组设置无限个出生点

Boomerang Home is part of a series of plugins designed to let you pick the functionality you want from the Boomerang suite of plugins.
BHome Bukkit Dev Site:
Features
Only the good parts.
- Versions 1.8.x and 1.9
- Players may set, teleport to and remove named home location.
- Maximum homes may be set by permission.
- Configurable teleporting message.
- Homes are saved in individual player files.
Related Plugins
Installation and Configuration
Place BHome.jar in your plugins folder and then reload or restart the server. It is recommended that you test and configure any plugin on a test server. BHome is preconfigured to allow each player 5 homes.
Macros
The player teleport message may be customized in config.yml.
&x - color code where x is the color code.

config.yml
Strings can be a challenging thing to enter into a config.yml. It is recommended you use single quotes ( ' ) around strings with other than alpha-numeric content such as formatted messages.
Mac users may find it troubling to use double quotes as TextEdit tends to automatically alter closing quotes which won't play with YAML. To get around that, copy and paste quotes.
max_homes
The default maximum number of homes a player may set. If using a permissions plugin that supports groups and per-player permissions, you may set the number of homes per group using permission bhome.max.x where x is the maximum number of homes for the group or player.<dd>
teleport_message
This message is displayed to the teleporting player when the home command is used. If this entry is empty, no message will be displayed to the player.<br /><br />
Example: teleport_message: '&eWoosh...'</dd>
spawn_height
The height above the block to spawn a player. Default is 0.5.<br /><br />
Example: teleport_message: 0.5
Commands
sethome
Set player's home as optionally named to current location. The name may consist of A-Z and 0-9. If name is omitted and the player has no home set, a home named 'home' will be set for the current location.
Usage: sethome [name]
Permission: bhome.home
</dd>
<dt>delhome</dt>
<dd>Delete player's named home. If name is omitted, displays existing homes.<br /><br />
Usage: delhome [name]<br />
Permission: bhome.home
</dd>
<dt>home</dt>
<dd>Teleport to optionally named home. If name is omitted and the player has one home set, the player will be teleported to that home's location, otherwise, displays existing homes.<br /><br />
Usage: home [home]<br />
Permission: bhome.home
</dd>
<dt>bhome</dt>
<dd>Boomerang Home administrative command.<br /><br />
Usage: bhome [ver[sion] | reload | max [number] | show <player> [home] | tp <player> [home]]<br />
Permission: bhome.admin<br /><br />
Examples:<br />
/bhome ver - Displays Boomerang Home's version.<br />
/bhome reload - Reloads config.yml.<br />
/bhome max 10 - Sets default maximum homes to 10<br />
/bhome max - Displays current default maximum number of homes.<br />
/bhome show <player> - Displays a list of homes a player has.<br />
/bhome show <player> <home> - Displays the coordinates of a player's home.<br />
/bhome tp <player> <home> - Teleports caller to a player's home.
</dd>
</dl>
Permissions
bhome.admin - allow admin commands
bhome.home - allow all home commands for players (sethome, delhome, home)
bhome.* - combines admin and home permissions above
bhome.max.# - allow player or group to set # homes. Overrides config.yml
bhome.unlimited - allow player or group to set unlimited homes
评论 0
登录后参与评分
还没有评论,来抢沙发吧