BlueMap-Towny
配置、占位符和主要功能大量借鉴自 Dynmap-Towny。
支持领地中的空洞以及主城镇之外的前哨站。
不支持通过外部插件挂钩到占位符的功能。
安装
将插件的 jar 文件放入你的 plugins 文件夹中,并确保已安装 Towny 和 BlueMap。
该插件默认不带任何图标。建议直接使用
Dynmap 的标记图标
配置
# BlueMap-Towny 配置
# https://github.com/Chicken/BlueMap-Towny#config
# 检查标记更新的间隔(秒)
update-interval: 30
# 在 BlueMap UI 中显示的标记集显示名称
marker-set-name: Towns
# 城镇标记的标签,%name% 会被替换为城镇名称
town-label: '%name%'
# 前哨站标记的标签,%name% 会被替换为城镇名称,%index% 被替换为前哨站编号
outpost-label: '%name% Outpost %index%'
# 由 /n set mapcolor 设置
dynamic-nation-colors: true
# 由 /t set mapcolor 设置
dynamic-town-colors: true
# 城镇弹出窗口的 HTML,占位符文档见 README
popup: '<span style="font-size: 120%">%name% (%nation%)</span><br><span>市长 <strong>%mayor%</strong></span><br><span>居民 <strong>%residents%</strong></span><br><span>银行 <strong>%bank%</strong></span>'
# 战争弹出窗口 HTML (仅限 SiegeWar),占位符文档见 README
popup-siege: '<span style="font-size: 120%"><strong>围攻: %attacker% vs %defender%</strong></span><br><hr><span>城镇 <strong>%name%</strong></span><br><span>类型 <strong>%siege_type%</strong></span><br><span>战争金库 <strong>%war_chest%</strong></span><br><span>围攻进度 <strong>%sessions_completed%/%sessions_total%</strong></span><br><span>围攻状态 <strong>%siege_status%</strong></span><br><span>围攻平衡 <strong>%siege_balance%</strong></span><br><span>旗帜控制权 <strong>%banner_control%</strong></span><br><span>战斗点数 <strong>%battle_points_attacker% / %battle_points_defender%</strong></span><br><span>剩余战斗时间 <strong>%battle_time_left%</strong></span>'
# 如果你希望仅当边界被占领时,带有空洞的领地也显示为完全占领。
# 这意味着地图会关于该区域的实际占领状态撒谎!!!
lie-about-holes: false
# 对于拥有大量城镇的服务器,过滤掉较小的城镇,设为 -1 以禁用过滤
min-town-blocks: -1
min-residents: -1
style:
# 区域标记所在的 Y 轴高度,图标位于出生点位置
y-level: 62
# 使用城镇家园的 Y 轴高度作为区域高度,否则回退到 y-level
use-home-y: false
# 城镇边框设置
border-color: '#FF0000'
border-opacity: 0.8
border-width: 3
# 城镇填充设置
fill-color: '#FF0000'
fill-opacity: 0.35
# 图标路径(网页资源或链接)
# 城镇家园
home-icon-enabled: false
home-icon: assets/house.png
home-icon-anchor-x: 8
home-icon-anchor-y: 8
# 国家首都
capital-icon-enabled: false
capital-icon: assets/king.png
capital-icon-anchor-x: 8
capital-icon-anchor-y: 8
# 战争期间的图标
war-icon-enabled: false
war-icon: assets/war.png
war-icon-anchor-x: 8
war-icon-anchor-y: 8
# 废墟城镇的图标
ruined-icon-enabled: false
ruined-icon: assets/ruined.png
ruined-icon-anchor-x: 8
ruined-icon-anchor-y: 8
# 前哨站的图标
outpost-icon-enabled: false
outpost-icon: assets/tower.png
outpost-icon-anchor-x: 8
outpost-icon-anchor-y: 8
标签占位符
town-label 和 outpost-label 支持以下占位符:
| 占位符 | 内容 |
|---|---|
%name% |
城镇名称 |
%index% |
前哨站编号 (仅限 outpost-label) |
弹出窗口占位符
| 占位符 | 内容 |
|---|---|
%name% |
城镇名称 |
%mayor% |
镇长 |
%residents% |
城镇居民 |
%assistants% |
城镇助理 |
%residentdisplaynames% |
城镇居民,但显示为显示名称 |
%residentcount% |
城镇居民数量 |
%founded% |
城镇成立日期 |
%board% |
城镇公告板文本 |
%trusted% |
城镇受信任的居民 |
%tax% |
城镇税收 |
%bank% |
城镇银行余额 |
%nation% |
所属国家 |
%nationstatus% |
首都/……的成员 |
%public% |
城镇公开状态 |
%peaceful% |
城镇是否处于和平状态 |
%flags% |
城镇标志(PVP、怪物等) |
%war% |
是否有正在进行的战争(适用于 EventWar/FlagWar) |
%town_culture% |
城镇文化,参见 |
%town_resources% |
城镇资源,参见 |
SiegeWar 占位符
| 占位符 | 内容 |
|---|---|
%attacker% |
战争中进攻的城镇/国家 |
%defender% |
战争中防守的城镇/国家 |
%siege_type% |
围攻类型(征服、叛乱等) |
%sessions_completed% |
已完成的战斗场次 |
%session_total% |
战斗场次总数 |
%war_chest% |
战争金库(如果 Towny 启用了经济系统) |
%banner_control% |
控制旗帜的一方 |
%siege_status% |
围攻状态 |
%siege_balance% |
围攻平衡值 |
%battle_points_attacker% |
进攻方拥有的战斗点数 |
%battle_points_defender% |
防守方拥有的战斗点数 |
%battle_time_left% |
战斗场次剩余时间 |
BlueMap-Towny
BlueMap addon for showing your Towny towns on your beautiful map
Configuration, placeholders and main features heavily inspired by Dynmap-Towny.
Has support for holes in claims and claims outside main town.
Does not have support for external plugins hooking into placeholders.
Installation
Put the plugin jar file inside your plugins folder and have both Towny and BlueMap installed. The plugin does not come with any default icons. I recommend just using Dynmap's marker icons
Config
# BlueMap-Towny configuration
# https://github.com/Chicken/BlueMap-Towny#config
# Seconds between checks for marker updates
update-interval: 30
# Display name of the marker set shown in BlueMap UI
marker-set-name: Towns
# Label for town markers, %name% is replaced with the town name
town-label: '%name%'
# Label for outpost markers, %name% is replaced with the town name, %index% with the outpost number
outpost-label: '%name% Outpost %index%'
# Set by /n set mapcolor
dynamic-nation-colors: true
# Set by /t set mapcolor
dynamic-town-colors: true
# HTML for town popup, placeholders documented in README
popup: '<span style="font-size: 120%">%name% (%nation%)</span><br><span>Mayor <strong>%mayor%</strong></span><br><span>Residents <strong>%residents%</strong></span><br><span>Bank <strong>%bank%</strong></span>'
# HTML for War popup(SiegeWar Only), placeholders documented in README
popup-siege: '<span style="font-size: 120%"><strong>Siege: %attacker% vs %defender%</strong></span><br><hr><span>Town <strong>%name%</strong></span><br><span>Type <strong>%siege_type%</strong></span><br><span>War Chest <strong>%war_chest%</strong></span><br><span>Siege Progress <strong>%sessions_completed%/%sessions_total%</strong></span><br><span>Siege Status <strong>%siege_status%</strong></span><br><span>Siege Balance <strong>%siege_balance%</strong></span><br><span>Banner Control <strong>%banner_control%</strong></span><br><span>Battle Points <strong>%battle_points_attacker% / %battle_points_defender%</strong></span><br><span>Battle Time Left <strong>%battle_time_left%</strong></span>'
# If you want claims with holes in them to show up as fully claimed if only the perimeter is claimed.
# This means that the map will LIE about the actual claim status of the area!!!
lie-about-holes: false
# For servers with a lot of towns, filter smaller ones out of the map, -1 to disable filter
min-town-blocks: -1
min-residents: -1
style:
# Y-level to put area markers at, icons are at spawn positions
y-level: 62
# Use y level of town home for areas, fallback to y-level
use-home-y: false
# Town border settings
border-color: '#FF0000'
border-opacity: 0.8
border-width: 3
# Town fill settings
fill-color: '#FF0000'
fill-opacity: 0.35
# Path to icons on web or a link
# Town home
home-icon-enabled: false
home-icon: assets/house.png
home-icon-anchor-x: 8
home-icon-anchor-y: 8
# Nation capital
capital-icon-enabled: false
capital-icon: assets/king.png
capital-icon-anchor-x: 8
capital-icon-anchor-y: 8
# Icon during war
war-icon-enabled: false
war-icon: assets/war.png
war-icon-anchor-x: 8
war-icon-anchor-y: 8
# Icon for ruined towns
ruined-icon-enabled: false
ruined-icon: assets/ruined.png
ruined-icon-anchor-x: 8
ruined-icon-anchor-y: 8
# Icon for outposts
outpost-icon-enabled: false
outpost-icon: assets/tower.png
outpost-icon-anchor-x: 8
outpost-icon-anchor-y: 8
Label placeholders
town-label and outpost-label support the following placeholders:
| Placeholder | Content |
|---|---|
%name% |
Town name |
%index% |
Outpost number (outpost-label only) |
Popup placeholders
| Placeholder | Content |
|---|---|
%name% |
Town name |
%mayor% |
Town mayor |
%residents% |
Town residents |
%assistants% |
Town assistants |
%residentdisplaynames% |
Town residents but display names |
%residentcount% |
Number of town residents |
%founded% |
Town founding date |
%board% |
Town board text |
%trusted% |
Town trusted residents |
%tax% |
Town tax |
%bank% |
Town bank balance |
%nation% |
Nation of the town |
%nationstatus% |
Capital/Member of ... |
%public% |
Town publicity status |
%peaceful% |
Is the town peaceful |
%flags% |
Flags of the town (pvp, mobs...) |
%war% |
Has active war (Works for EventWar/FlagWar) |
%town_culture% |
Culture of town, see |
%town_resources% |
Resources of town, see |
SiegeWar Placeholders
| Placeholder | Content |
|---|---|
%attacker% |
Attacking town/nation in war |
%defender% |
Defending town/nation in war |
%siege_type% |
Type of Siege (Conquest, Revolt etc) |
%sessions_completed% |
Battle Sessions completed |
%session_total% |
Total amount of Battle Sessions |
%war_chest% |
War Chest (If economy is enabled for Towny) |
%banner_control% |
the ones controlling the banner |
%siege_status% |
Siege status |
%siege_balance% |
Siege balance |
%battle_points_attacker% |
Battle points on the attacker's side |
%battle_points_defender% |
Battle points on the defender's side |
%battle_time_left% |
Time left in the Battle Session |
下载 BlueMap-Towny
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 BlueMap-Towny
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 BlueMap-Towny
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 BlueMap-Towny
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 BlueMap-Towny
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 BlueMap-Towny
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 BlueMap-Towny
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 BlueMap-Towny
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 BlueMap-Towny
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 BlueMap-Towny
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
在 GitHub releases 查看更新日志
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
插件
用于绘制游戏内地图或在浏览器中随探索实时进行地图绘制的实时地图。
评论 0
登录后参与评分
还没有评论,来抢沙发吧