描述
关于 WorldGuard Custom Flags
WorldGuard Custom Flags 允许模组制作者创建、设置和获取 WorldGuard 区域中的自定义标志。 作为用户,只有当某个插件需要它时才需要下载此插件,因为它本身不会执行任何操作。
如果您在使用任何 WorldGuard Custom Flags 插件时遇到问题,请在 论坛 上发布。
这也是发布您的 WorldGuard Custom Flags 插件或插件建议的正确地方。
从现在开始,我将忽略(并删除)评论区中报告的任何问题。
它会自动使用与 WorldGuard 相同的数据库(如果已指定),但您需要使用附带的 SQL 文件手动创建表。
WorldGuard Custom Flags 也可在 github 上找到。如果您需要除 Java 7 以外的其他 Java 版本的版本,则必须自行编译。
点击 这里 查看一些使用 WorldGuard Custom Flags 的有用插件,或点击 这里 查看由我/BangL 的插件添加的所有标志列表。
有问题?
如果您对 WorldGuard Custom Flags 或使用它的我的插件有任何问题,请阅读 此页面。
捐赠
如果您想通过捐赠支持我,您可以点击右上角的捐赠按钮(搜索框上方),或者点击 这里(或 这里,如果您想用欧元捐赠)。
安装
要设置 WorldGuard Custom Flags,只需将 jar 文件拖放到“plugins”文件夹中即可。如果您为 WorldGuard 使用数据库,则有两种选择:
强制 WG Custom Flags 使用平面文件
如果您不希望 WG Custom Flags 使用数据库,请按照以下步骤操作:
- 将 jar 文件放入“plugins”文件夹后,启动服务器一次
- 您可以忽略由此产生的错误消息
- 停止服务器
- 现在进入“plugins/WGCustomFlags”并编辑“config.yml”
- 只需将“save-handler”属性更改为“flat”以强制使用平面文件保存
- 如果再次启动服务器,插件将使用平面文件
设置数据库
如果您希望 WG Custom Flags 使用 WorldGuard 数据库,只需将 sql 文件导入到您的数据库中即可。
- 如果您使用 MySQL 和 PhpMyAdmin,可以直接使用 PhpMyAdmin Web 界面导入文件
- 如果您使用 MySQL 但没有 PhpMyadmin,则需要将文件上传到服务器并执行:
当然,您必须用您的数据库用户替换“root”。输入命令后,您需要输入密码。
mysql -u root -p database < worldflags.sql
命令
- /flags [-d|-i <flag>]
- /flags 列出所有自定义标志
- /flags -d 列出所有标志(包括默认标志)
- /flags -i <flag> 显示有关某个标志的信息
权限
- wgcustomflags.flags
- 默认:允许操作员使用
- 限制 /flags 命令的使用
未来 / WorldGuard 6
在 WorldGuard 的未来更新中,该插件将默认支持自定义标志。当此功能发布时,我将最后一次更新此插件,使其作为任何其他尚未在此刻更新的 WorldGuard Custom Flags 插件的桥梁。我的所有插件都将更新为使用 WorldGuard API,该项目将在一段时间后弃用,但我希望在此之前能获得超过 50,000 次下载 :-) 。
开发者信息
WG Custom Flags 支持以下标志类型:
- BooleanFlag
- CommandStringFlag
- DoubleFlag
- EntityTypeFlag
- EnumFlag
- IntegerFlag
- LocationFlag(建议使用 CustomLocationFlag,因为当 WorldGuard 使用数据库时,它不会产生错误消息)
- SetFlag(建议使用 CustomSetFlag)
- StateFlag
- StringFlag
- VectorFlag(建议使用 CustomVectorFlag)
点击此处获取更多开发相关信息。
Description
About WorldGuard Custom Flags
WorldGuard Custom Flags allows modders to create, set and get custom flags on WorldGuard regions. As a user you just need to download this if a plugin requires it, it does not do anything on its own.
If you have problems with any WorldGuard Custom Flags plugin post it at the forum.
This is also the right place to post your WorldGuard Custom Flags plugins or suggestions for plugins.
From now on I will ignore (and delete) any issue reported in the comments section.
It automatically uses the same database as WorldGuard (if specified), but you need to create the table manually using an included sql-file.
WorldGuard Custom Flags is also available on github. If you want a version for any other Java version than 7 you will have to compile it yourself.
Click here for some useful plugins using WorldGuard Custom Flags or here for a list of all flags added by my/BangL's plugins.
Problems?
If you have a problem with WorldGuard Custom Flags or any of my plugins using it read this, please.
Donate
If you want to support me with a donation you can click the donate button on the top right corner (above the search box) or here (or here if you want to donate in €).
Setup
To setup WorldGuard Custom Flags you just have to drag and drop the jar-file into your "plugins" folder. If you use a database for WorldGuard you have two possibilities:
Force WG Custom Flags to use a flat file
If you do not want WG Custom Flags to use the database you have to follow these steps:
- after dropping the jar-file into your "plugins" folder start the server one time
- you can ignore the error message this will produce
- stop the server
- now go to "plugins/WGCustomFlags" and edit "config.yml"
- simply change the "save-handler" property to "flat" to force flat file saving
- if you start the server again the plugin will use the flat file
Setup the database
If you want WG Custom Flags to use the WorldGuard database you simply have to import the sql-file into your database.
- if you are using MySQL and PhpMyAdmin you can simply use the PhpMyAdmin web interface to import the file
- if you use MySQL, but no PhpMyAdmin you have to upload the file to your server and execute:
Of course you will have to replace "root" with your database user. After the command you have to enter the password.
mysql -u root -p database < worldflags.sql
Commands
- /flags [-d|-i <flag>]
- /flags lists all custom flags
- /flags -d lists all flags (including the default ones)
- /flags -i <flag> displays information about a flag
Permissions
- wgcustomflags.flags
- default: allowed for ops
- limits the usage of the /flags command
The future / WorldGuard 6
In a future update of WorldGuard the plugin will support custom flags by default. When this gets released I will update this plugin a last time to be used as a bridge for any other WorldGuard Custom Flags plugin that has not been updated at that moment. All my plugins will be updated to use the WorldGuard API instead and this project will be abandoned after some time, but I hope I will get more than 50,000 downloads till then :-) .
Developer information
WG Custom Flags supports the following flag types:
- BooleanFlag
- CommandStringFlag
- DoubleFlag
- EntityTypeFlag
- EnumFlag
- IntegerFlag
- LocationFlag (better use CustomLocationFlag, it does not produce error messages if WorldGuard uses a database as this does)
- SetFlag (better use CustomSetFlag)
- StateFlag
- StringFlag
- VectorFlag (better use CustomVectorFlag)
Click here for more information on developing.
下载 WorldGuard Custom Flags
下载 WorldGuard Custom Flags
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 WorldGuard Custom Flags
下载 WorldGuard Custom Flags
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 WorldGuard Custom Flags
下载 WorldGuard Custom Flags
下载 WorldGuard Custom Flags
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 WorldGuard Custom Flags
下载 WorldGuard Custom Flags
下载 WorldGuard Custom Flags
版本 1.0
- 首次发布
版本 1.1
- 修复了 StateFlag 无法正常工作的问题
- 修复了数据库中未删除的无效标志
- 修复了大多数标志未保存到数据库的问题
版本 1.2
- 区域组属性现在也会被保存 -> 你需要更新你的数据库
- 添加了 VectorFlag 支持
- 添加了 LocationFlag 支持
- 添加了 SetFlag 支持
版本 1.2.1
- 添加了自定义标志的支持
版本 1.2.2
- 重构了标志的保存方式 -> 需要的文件和表更少;WorldGuard 的 get 方法现在应该能正常工作了
版本 1.2.3
- 添加了 CustomSetFlag 类 => 使用此类可防止在处理 set 标志时出现 WorldGuard 错误提示
版本 1.2.4
- 针对数据库用户的重要 bug 修复
版本 1.2.5
- 针对数据库用户的另一项重要 bug 修复
- 添加了 CustomLocationFlag 和 CustomVectorFlag
版本 1.3
- 如果 SQL 服务器关闭连接,添加了重新连接功能
- 正式发布
版本 1.3.1
- 修复了标志值未保存的问题
版本 1.4
- 添加了用于检查位置处 CustomSetFlags 的工具类
版本 1.4.1
- 为 Java 6 重新编译
- 修复了插件有时不使用日志记录器的问题
版本 1.4.2
- 适配 CB 1.4.4-R0.1
版本 1.4.3
- 修复了 NullPointerException(空指针异常)
版本 1.5
- 修复了 /worldguard reload 有时会移除自定义标志的问题
- 将世界保存的日志级别设置为 finest
- 它不会再刷屏控制台了
- 添加了设置以确定何时保存标志
- 名称:flag-saving
- 值:save(在世界保存时保存)、unload(在世界卸载时保存)和 change(在标志更改时保存)
- 为开发者添加了 getFlagValue 函数,以便获取某位置的标志值
- 会检查父级和优先级
版本 1.5.1
- 修复了平面文件保存处理器中 EnumFlags 的 NullpointerException(空指针异常)
- 标志现在异步保存
- 修复了某些服务器的卡顿问题
- 修复了 /region 命令的 ArrayIndexOutOfBoundsException(数组索引越界异常)
版本 1.5.2
- 修复了服务器关闭时的异常
- 重组了变更日志 ;)
版本 1.5.3
- 添加了 PluginFlag
- 添加了添加插件所有标志的功能
版本 1.6
- 添加了 flags.yml 的支持
- 添加了标志描述的支持(稍后会很有用)
版本 1.7
- 改进了对 flags.yml 的支持
- 改进了保存标志时的错误处理
- 当发生单个异常时,保存操作不再完全失败
- 添加了 /flags 命令
- 用法:/flags [-d|-i <flag>]
- /flags 列出所有自定义标志
- /flags -d 列出所有标志(包括默认标志)
- /flags -i <flag> 显示有关某个标志的信息
版本 1.8.1-beta
- 添加了对 WorldGuard 6 的支持
版本 1.9
- 更新至 Bukkit 1.9
- 当你设置标志时,你会收到来自 WorldGuard 的错误提示,但这不会影响服务器的行为。(仅在你未使用我的自定义标志类时才会出现)
- 这是 WorldGuard 的一个错误,预计将在未来的更新中修复
- WorldGuard 的 /region 命令有时会产生错误。(已修复?)
- 有时标志未在 WorldGuard 中正确注册。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
插件
一个在游戏内运行的 Minecraft 地图编辑器! 支持选区、蓝图、复制粘贴、笔刷和脚本。 可在创造模式中使用,也可在生存模式中临时使用。
插件
一个强大的 API,用于为你的 Minecraft 服务器创建自定义进度。
插件
SkyBlock、OneBlock、Boxed、SkyGrid、AcidIsland、CaveBlock、Poseidon、StrangerRealms——以及更多!这些只是由 BentoBox 支持的基于岛屿的游戏模式之一。来自原版 ASkyBlock 的作者。
评论 0
登录后参与评分
还没有评论,来抢沙发吧