CountryBanners
CountryBanners 是一款插件,可为你的服务器添加国家旗帜横幅。玩家加入服务器时,会根据其 IP 地址自动获得所属国家的旗帜。内置超过 30 种旗帜,均使用 Minecraft 自带的横幅图案制作。
你可以配置玩家获得旗帜的时机和方式,例如仅在首次加入时发放,或每次连接服务器时都发放。你还可以选择将旗帜放置的位置:是戴在头上、拿在主手、副手中,还是直接放入背包。旗帜的名称和稀有度也可自定义,并且可以隐藏用于制作每种旗帜的图案列表,使物品外观更整洁。此外,你还可以注册自己的旗帜。
国家检测通过 MaxMind(一项免费的地理位置服务)实现。要设置它,请在 maxmind.com 创建一个免费账户,前往“Manage License Keys”(管理许可证密钥),生成一个新的密钥,然后将你的 Account ID(账户 ID)和 License Key(许可证密钥)粘贴到配置文件中。
快速链接:
命令
| 命令 |
描述 |
/cbanners give <country_code> |
给自己发放一面国家旗帜横幅。 |
/cbanners register <country_code> <country_name> |
将你手中持有的旗帜注册为特定国家的旗帜。 |
/cbanners reload |
重新加载配置文件并载入新注册的旗帜。 |
/cbanners version |
显示当前版本及可用的最新版本。 |
默认配置
banner:
# 所有旗帜的显示名称。
# {country} = 国家名称占位符
name: 'Flag of {country}'
# 旗帜横幅的稀有度。
# 'common' = 白色
# 'uncommon' = 黄色
# 'rare' = 浅蓝色
# 'epic' = 淡紫色
rarity: 'uncommon'
patterns:
# 隐藏用于制作该旗帜的图案列表。
hide: true
# 从 IP 地址获取国家代码所需的凭据。此插件使用名为 MaxMind 的服务,
# 需要注册一个免费账户。请在 https://www.maxmind.com/en/geolite2/signup
# 创建账户,进入“Manage license keys”(管理许可证密钥),
# 然后“Generate new license key”(生成新的许可证密钥)。接着在此处填入
# “Account ID”(账户 ID)和“License Key”(许可证密钥)。
maxmind:
account-id: 0 # 例如 123456
license-key: '' # 例如 xxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx_xxx
# 玩家何时会获得其国家旗帜的事件。
# 'first_join' = 仅在玩家首次加入时
# 'join' = 玩家每次加入服务器时
enabled-events: ['first_join']
# 发放旗帜的位置。
# 'helmet' = 戴在头上
# 'main_hand' = 拿在主手
# 'off_hand' = 拿在副手
# 'inventory' = 放入背包
hand-out-position: 'helmet'
# 当插件有可用更新时,在启动时显示通知消息。
notify-on-update: true
CountryBanners
CountryBanners is a plugin that adds country flag banners to your server. Players automatically receive their own country's flag when they join, detected from their IP address. Over 30 flags are included, created using Minecraft's built-in banner patterns.
You can configure when and how players receive their flag, either only on their first join or every time they connect. You can also choose where the banner is placed, whether that's on their head, in their main hand, off-hand, or just added to their inventory. The banner's display name and rarity are configurable too, and the patterns used to make each flag can be hidden so the item looks clean. It is also possible to register your own banners.
Country detection is handled through MaxMind, a free geolocation service. To set it up, create a free account at maxmind.com, go to Manage License Keys, generate a new key, and paste your Account ID and License Key into the config file.
Quick links:
Commands
| Command |
Description |
/cbanners give <country_code> |
Give a country's flag banner to yourself. |
/cbanners register <country_code> <country_name> |
Register the banner in your hand for a specific country. |
/cbanners reload |
Reload the configuration and load new banners. |
/cbanners version |
Show the current and latest available version. |
Default config
banner:
# Display name of every banner.
# {country} = placeholder for country name
name: 'Flag of {country}'
# Rarity of the flag banners.
# 'common' = white
# 'uncommon' = yellow
# 'rare' = aqua
# 'epic' = light purple
rarity: 'uncommon'
patterns:
# Hide the list of banner patterns that were used to make the banner.
hide: true
# Credentials for retrieving country codes from IP addresses. This plugin uses a service
# called MaxMind, which requires the registration of a FREE account. Please create an
# account at https://www.maxmind.com/en/geolite2/signup, go to 'Manage license keys', and
# 'Generate new license key'. Then add the 'Account ID' and 'License Key' down here.
maxmind:
account-id: 0 # i.e. 123456
license-key: '' # i.e. xxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx_xxx
# Events when a player will be given their country banner.
# 'first_join' = only when a player joins for the first time
# 'join' = every time a player joins the server
enabled-events: ['first_join']
# The position to hand out the banner to.
# 'helmet' = on their head
# 'main_hand' = in their main hand
# 'off_hand' = in their off-hand
# 'inventory' = to their inventory
hand-out-position: 'helmet'
# Show a message on start-up when an update is available for the plugin.
notify-on-update: true
评论 0
登录后参与评分
还没有评论,来抢沙发吧