TownyWaypoints
为 Towny 配置可让玩家之间传送的区块类型。
需要 Paper 或其分支。支持 Folia。它无法在 Bukkit 或 Spigot 上运行。
旅行
玩家可以使用 /twp travel <town> <waypoint> <plot name> 在不同路标之间旅行。
当玩家传送时,会使用 Towny 的等待时间(warmups)。如果你在 Towny 中设置了传送等待时间,或者使移动或伤害取消等待时间,这些规则将在玩家尝试前往路标时生效。
配置
默认配置:
# 这是当前版本。请勿编辑。
version: '1.9'
# 你希望使用的语言文件。
language: en_US.yml
waypoints:
############################################################
# +------------------------------------------------------+ #
# | 经济系统 | #
# +------------------------------------------------------+ #
############################################################
economy:
# 添加到路标城镇银行的旅行费用百分比,其余部分归国家所有。如果该地点没有所属国家,则100%的费用将存入城镇银行。
# 值为 -1 时禁用此功能
split: '0.5'
############################################################
# +------------------------------------------------------+ #
# | Restrictions | #
# +------------------------------------------------------+ #
############################################################
restrictions:
# 玩家可以在两个路标之间移动的最大方块距离。
# 值为 -1 时禁用此限制
max_distance: '2700'
# 玩家在两次路标传送之间必须等待的秒数。
cooldown: '300'
# 如果为 true,玩家只能从一个类型的路标传送到另一个类型的路标。
peer_to_peer: 'true'
- `waypoints.restrictions.max_distance` 是玩家通过传送点可移动的最大方块数。玩家无法传送到距离当前位置超过 `max_distance` 个方块的传送点。
- `waypoints.restrictions.cooldown` 是玩家在两次传送之间必须等待的时间(以秒为单位)。
- `waypoints.restrictions.peer_to_peer` 设置为 true 时,意味着玩家必须站在与目标相同类型的传送点上才能传送到另一个传送点,例如,如果我想传送到另一个稳定区域的传送点,我就必须站在一个稳定区域的传送点上。
---
### `waypoints.yml` 文件
在 `waypoints.yml` 中,你可以定义不同类型的传送点。
```yaml
stable:
name: "stable"
mapKey: 'S' # 在 /towny 地图和 /towny 地图 HUD 上显示的单字符。
cost: 4500.0 # 创建此信标的费用。
travel_cost: 450 # 前往此信标的费用。
max: 1 # 每个城镇允许创建的此类地块的最大数量。
travel_with_vehicle: true # 如果为 true,玩家的载具将随玩家一同移动。
permission: townywaypoints.landpoint.stable # 将地块设置为该信标类型所需的权限节点;若未设置权限,则任何人都可以创建此信标,请在 townyperms.yml 中授予相应权限。
# 玩家可在信标之间移动的最大距离(以方块为单位)。
# 若设为 -1,则使用全局配置值。
max_distance: -1
allowed_biome_tags: # 可在此类地块上创建的生物群系标签列表。优先级高于 allowed_biomes。
- minecraft:is_overworld
allowed_biomes: # 可创建此类地块的生物群系列表。若未提供,则该地块类型可在任何生物群系中创建。
- FOREST
- PLAINS
- SUNFLOWER_PLAINS
- TAIGA
- BIRCH_FOREST
- SAVANNA
- WINDSWEPT_FOREST
- WINDSWEPT_SAVANNA
- FLOWER_FOREST
seaport:
name: "seaport"
mapKey: 'P' # 在 /towny 地图和 /towny 地图 HUD 上显示的单字符。
cost: 2500.0 # 创建此信标的费用。
travel_cost: 250 # 前往此信标的费用。
max: 1 # 每个城镇允许创建的此类地块的最大数量。
travel_with_vehicle: false # 如果为 true,玩家的载具将随玩家一同移动。
permission: townywaypoints.seapoint.seaport # 将地块设置为该信标类型所需的权限节点;若未设置权限,则任何人都可以创建此信标,请在 townyperms.yml 中授予相应权限。
# 玩家可在信标之间移动的最大距离(以方块为单位)。
# 若设为 -1,则使用全局配置值。
max_distance: 6000
allowed_biome_tags: # 可在此类地块上创建的生物群系标签列表。优先级高于 allowed_biomes。
- minecraft:is_beach
allowed_biomes: # 可创建此类地块的生物群系列表。若未提供,则该地块类型可在任何生物群系中创建。
- COLD_OCEAN
- DEEP_COLD_OCEAN
- DEEP_OCEAN
- LUKEWARM_OCEAN
- OCEAN
- WARM_OCEAN
这样的 waypoints.yml 意味着玩家将可以使用两种地块类型:马厩(stables)和港口(seaports)。
马厩
- 地图键为
S - 创建费用为 $4500
- 前往费用为 $450
- 每个城镇最多可创建 2 个(注:原文此处描述与 YAML 中
max: 1存在矛盾,根据 YAML 实际配置应为每城镇限 1 个,但此处忠实翻译原文说明文本) - 仅拥有
townywaypoints.landpoint.stable权限的玩家可创建 - 只能在大多数陆地生物群系中创建
- 使用 config.yml 中的最大距离 2700
港口
- 地图标识为
P - 建造费用为 $2500
- 前往的费用为 $250
- 每个城镇最多可建造 2 个
- 所有玩家均可建造
- 仅可在沙滩和海洋生物群系中建造
- 拥有独立的距离上限,默认为 6000(具体数值由 config.yml 配置决定)
玩家通过执行 /plot set <waypoint type name> 将一块地块标记为传送点。
他们可以使用 /twp set <open> [value] 修改传送点的某些设置。
使用 /twp set open <status> 可以设置传送点的访问权限:对所有人开放,或仅限盟友、国家成员、城镇成员,或完全关闭(仅限自己)。
使用 /twp set spawn 可以更改玩家传送到传送点时出现的方块位置;若未指定,默认生成位置为玩家将该地块标记为传送点时所站立的位置。
权限节点
townywaypoints.admin允许使用重载命令并禁用所有权限检查。- 玩家需要拥有 Towny 的
towny.command.town.set.spawn权限节点才能设置传送点的出生点。 - 玩家需要拥有 Towny 的
towny.command.town.toggle.public权限节点才能设置传送点的公开状态。
翻译
如果您愿意帮助将 TownyWaypoints 翻译成现有语言,或添加全新的语言,请访问我们的 Crowdin 页面!
链接
灵感来源于 TownyPorts
TownyWaypoints
Configurable plot types for Towny that players can teleport between.
Requires Paper or a fork of it. Supports Folia. It will not work on Bukkit or Spigot.
Traveling
Players can travel between different waypoints with /twp travel <town> <waypoint> <plot name>
When players teleport it uses Townys warmups, so if you have a teleport warmup in Towny / make movement or damage cancel the warmup those will apply when players attempt to travel to waypoints.
Config
Default config:
# This is the current version. Please do not edit.
version: '1.9'
# The language file you wish to use.
language: en_US.yml
waypoints:
############################################################
# +------------------------------------------------------+ #
# | Economy | #
# +------------------------------------------------------+ #
############################################################
economy:
# The percentage of the travel cost that gets added to the waypoints town bank, the rest goes to the nation. If it has no nation then 100% goes to the town bank.
# Disabled with value of -1
split: '0.5'
############################################################
# +------------------------------------------------------+ #
# | Restrictions | #
# +------------------------------------------------------+ #
############################################################
restrictions:
# The maximum number of blocks a player can travel between waypoints.
# Disabled with value of -1
max_distance: '2700'
# The amount of seconds a player must wait between waypoint travels.
cooldown: '300'
# If true players can only teleport from one waypoint type to another.
peer_to_peer: 'true'
waypoints.restrictions.max_distanceis the maximum number of blocks a player can travel via waypoints. A player cannot travel to a waypoint that ismax_distanceblocks away from their current location.waypoints.restrictions.cooldownis the amount of time in seconds a player must way between waypoint travels.waypoints.restrictions.peer_to_peerwhen set to true means that players must be standing in a waypoint of the same type to teleport to another waypoint, meaning I must be standing in a stable plot if I want to travel to another stable waypoint.
The waypoints.yml file
In waypoints.yml you define different types of waypoints.
stable:
name: "stable"
mapKey: 'S' # A single character to be shown on the /towny map and /towny map hud.
cost: 4500.0 # Cost to create the waypoint.
travel_cost: 450 # Cost to travel to waypoint.
max: 1 # Max number of plots of this type allowed per town.
travel_with_vehicle: true # If true, player's vehicle will travel with the player.
permission: townywaypoints.landpoint.stable # Permission node required to set a plot to a type of this waypoint, if no permission is set anyone can create this waypoint, grant it in townyperms.yml
# The maximum number of blocks a player can travel between waypoints.
# Uses the global value if -1
max_distance: -1
allowed_biome_tags: # List of biome tags this plot can be created on. Takes priority over allowed_biomes.
- minecraft:is_overworld
allowed_biomes: # List of biomes this plot type can be created on. If it's not provided the plot type can be created on any biome.
- FOREST
- PLAINS
- SUNFLOWER_PLAINS
- TAIGA
- BIRCH_FOREST
- SAVANNA
- WINDSWEPT_FOREST
- WINDSWEPT_SAVANNA
- FLOWER_FOREST
seaport:
name: "seaport"
mapKey: 'P' # A single character to be shown on the /towny map and /towny map hud.
cost: 2500.0 # Cost to create the waypoint.
travel_cost: 250 # Cost to travel to waypoint.
max: 1 # Max number of plots of this type allowed per town.
travel_with_vehicle: false # If true, player's vehicle will travel with the player.
permission: townywaypoints.seapoint.seaport # Permission node required to set a plot to a type of this waypoint, if no permission is set anyone can create this waypoint, grant it in townyperms.yml
# The maximum number of blocks a player can travel between waypoints.
# Uses the global value if -1
max_distance: 6000
allowed_biome_tags: # List of biome tags this plot can be created on. Takes priority over allowed_biomes.
- minecraft:is_beach
allowed_biomes: # List of biomes this plot type can be created on. If it's not provided the plot type can be created on any biome.
- COLD_OCEAN
- DEEP_COLD_OCEAN
- DEEP_OCEAN
- LUKEWARM_OCEAN
- OCEAN
- WARM_OCEAN
A waypoints.yml like this means two plot types will be available to players, stables and seaports.
Stables
- Have a map key of
S - Cost $4500 to create
- Cost $450 to travel to
- Are limited to 2 per town
- Can be created only by players with the
townywaypoints.landpoint.stablepermission - Can be created in most land biomes
- Use the max distance of 2700 from config.yml
Seaports
- Have a map key of
P - Cost $2500 to create
- Cost $250 to travel to
- Are limited to 2 per town
- Can be created by all players
- Can only be created in beach and ocean biomes
- Have their own max distance of 6000 seperate the one in config.yml
A player designates a plot as a waypoint by doing /plot set <waypoint type name>.
They can change things about the waypoint with /twp set <open> [value].
Waypoints travel can be open to everyone or limited to allies, nation members, town members, or noone (closed) with /twp set open <status>.
The block a player gets teleported to on traveling to a waypoint can be changed with /twp set spawn a waypoints default spawn is where the player was standing when they designated the plot as a waypoint.
Permission nodes
townywaypoints.adminAllows use of the reload command and disables all permission checks.- Towny's
towny.command.town.set.spawnpermission node is needed for a player to set the spawn of a waypoint. - Towny's
towny.command.town.toggle.publicpermission node is needed for a player to set the open status of a waypoint.
Translations
If you'd like to help translating TownyWaypoints into the available languages or add entirely new languages, we're on Crowdin!
Links
Inspired by TownyPorts
下载 TownyWaypoints
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 TownyWaypoints
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 TownyWaypoints
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 TownyWaypoints
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 TownyWaypoints
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 TownyWaypoints
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 TownyWaypoints
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 TownyWaypoints
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 TownyWaypoints
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 TownyWaypoints
暂无更新日志
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
插件
用于绘制游戏内地图或在浏览器中随探索实时进行地图绘制的实时地图。
评论 0
登录后参与评分
还没有评论,来抢沙发吧