Discord | Hangar | Spigot | Modrinth | GitHub
FlagsH
用于在 Minecraft 中显示旗帜的模组插件。
使用方法
本插件力求尽可能直观。无需任何命令即可创建、扩展和移除旗帜。
- 将旗帜物品放置在方块上以获得旗帜。
- 潜行时将旗帜物品放置在方块上以获得旗杆。
- 通过将新的旗帜物品放置在旗帜或旗杆上来扩展其范围。
- 通过击打来破坏旗帜或旗杆。
兼容性
FlagsH 兼容 Spigot、Paper、Folia(以及应能兼容其他衍生版本)。
FlagsH 兼容 Towny 的地块认领权限。
管理员命令
/flagsh 或 fh 打印版本号。
/fh reload 重载配置文件与旗帜数据文件。
/fh list 打印所有旗帜列表。
/fh remove <id>|all 根据位置从列表中移除指定旗帜,或移除所有旗帜。
安装
- 下载最新版本。
- 将其放入服务器文件目录下的
plugins/ 文件夹中。
- 重启服务器
支持的 Minecraft 版本列于各发布页面中。
如果您使用的 Minecraft 版本低于 1.20.5,则需要在服务器上安装 Java 21。
配置
首次启动后,您可以在 plugins/FlagH/config.yml 中编辑配置文件。
maxFlagSize 是旗帜的最大尺寸。默认尺寸为 1。尺寸为 2 意味着旗帜的面积和长度均为原来的 2 倍。如果玩家尝试将旗帜尺寸增加到超过限制,则旗帜不会扩展,旗帜物品会掉落在地上,并播放愤怒的 NPC 音效。
每个新添加的旗帜会将旗杆的尺寸增加 increasingSizeStep。
flagEnable 和 bannerEnable 用于启用或禁用旗帜或旗杆功能。
forbidenInteractGamemodes 是一个游戏模式列表,在这些模式下玩家无法与旗帜和旗杆进行交互。通常您只希望冒险模式下的玩家无法编辑旗帜,但也可能希望阻止生存模式下的玩家放置或破坏旗杆。
offHandMod 的可能值为:
- "DEFAULT":副手与主手无区别。
- "VANILLA":副手仅放置原版旗帜。(允许放置原版旗帜。)
- "INVERTED":副手在潜行时放置旗帜而非旗杆。(允许在可切换的方块上放置旗帜。)
- "VANILLA_AND_INVERTED":副手在潜行时放置旗帜,非潜行时放置原版旗帜。
统计数据
构建
使用 ./gradlew assemble 进行构建。插件文件将位于 build/libs/ 中。
使用 ./gradlew runServer 构建并运行本地 Paper 服务器
Discord | Hangar | Spigot | Modrinth | GitHub
FlagsH
Minecraft plugins to display banners as flags.
Use
this plugin tries to be as intuitive as possible. No command is needed to create, extend and remove a flag.
- Place a banner item on a block to get a banner.
- Place a banner item on a block while sneaking to get a flag.
- Extends flag or banner by placing new banner item onto the flag or banner.
- Break flag or banner by hitting it.
Compatibility
FlagsH work with Spigot, Paper, Folia (and should work with any fork).
FlagsH is compatible with Towny claim permission.
Admin commands
/flagsh or fh Print the version.
/fh reload Reload config & flags data file.
/fh list Print the list of all flags.
/fh remove <id>|all Remove a flag on the list based on its possition or all flags.
Install
- Download last version.
- Place it in
plugins/ in your server files.
- Restart your server
Supported Minecraft version are listed in each release.
If you are using an older Minecraft version than 1.20.5, you will need to have Java 21 on your server.
Configure
After 1st launch you can edit config in plugins/FlagH/config.yml
maxFlagSize is the max size of a flag. Default size is 1. A size of 2 means that the flag is 2 times larger and 2 times longer. If a player try to increase flag size over the limit, then flag won't be extended, banner item will drop to the ground and angry NPC sound will be played.
Each new banner added extend the flag of increasingSizeStep.
flagEnable & bannerEnable enable or disable flag or banner.
forbidenInteractGamemodes is a list of gamemode in which player can't interact with flags and banners. Usually you only want player in adventure not being able to edit flag, but you might also want to prevent any player in survival to place or destroy banner.
offHandMod possible values are:
- "DEFAULT": No difference with main hand.
- "VANILLA": Off hand only place vanilla banners. (Allow vanilla banner to be placed.)
- "INVERTED": Off hand place banner in sneaking mode instead of flags. (Allow banner to be placed on switchable blocks.)
- "VANILLA_AND_INVERTED": Off hand place banner in sneaking mode and vanilla banner while not sneaking.
Statistics
Build
Build with ./gradlew assemble. Plugin file will be in build/libs/.
Build and run a local paper server with ./gradlew runServer
评论 0
登录后参与评分
还没有评论,来抢沙发吧