描述
关于 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,则需要将文件上传到服务器并执行:
mysql -u root -p database < worldflags.sql
当然,您必须用您的数据库用户替换“root”。输入命令后,您需要输入密码。
命令
- /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:
mysql -u root -p database < worldflags.sql
Of course you will have to replace "root" with your database user. After the command you have to enter the password.
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.
评论 0
登录后参与评分
还没有评论,来抢沙发吧