WorldGuard Custom Flags
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.
-
View User Profile
-
Send Message
Posted Aug 17, 20191.14.4 please
-
View User Profile
-
Send Message
Posted Dec 2, 2018Update 1.13?
Specifically Worldguard Comparability.
-
View User Profile
-
Send Message
Posted Jan 24, 2018work with 1.12?
-
View User Profile
-
Send Message
Posted Oct 9, 2017The plugin no longer works under the new WorldGuard (6.2.1)
I can't write here, because dev-bukkit says "it is spam" =(
I wrote it here https://www.spigotmc.org/threads/worldguard-custom-flags.175401/#post-2703273
There I wrote the problem and how I've solved it
-
View User Profile
-
Send Message
Posted Jun 14, 2017Looks like this no longer works from WG 6.2.x onwards due to the new custom flag integration. Hopefully someone can update this to work with it.
-
View User Profile
-
Send Message
Posted May 21, 2017I have a problem with flag on enderpearls .
On version 6.1.
I set /rg flag [name] enderpearl deny
and player again can use enderpearls
plz help !!!!
-
View User Profile
-
Send Message
Posted Dec 2, 2016I need the Chunk-Unload flag ! Please update or include this flag in WorldGuard itself.
-
View User Profile
-
Send Message
Posted Nov 28, 2016WorldGuard build #1692 totally breaks this plugin. http://pastebin.com/WvTEUAP8
-
View User Profile
-
Send Message
Posted Sep 30, 2016@sgdc3
WG 6.1.3 (build 1685) not sees the fly flag!
Unknown flag specified... Works only if i set this flag by hand in config of WG regions.
With WG 6.1.2 no problem
-
View User Profile
-
Send Message
Posted Aug 8, 2016@sgdc3
I uploaded your .jar to my maven repository too. I hope this helps someone ^^
Just add "http://nexus-h4x0rz.rhcloud.com/repository/maven-releases" as a repo.
-
View User Profile
-
Send Message
Posted Aug 7, 2016@sgdc3
I thank you!!! THANKS DUUUUDE!
-
View User Profile
-
Send Message
Posted Aug 6, 2016I found version 1.9.1 for MC 1.10 on the author's github profile, if you want to download the compiled jar i've added it to my build server: http://ci.xephi.fr/job/WGCustomFlags/
-
View User Profile
-
Send Message
Posted Jul 24, 2016We need update. is he still alive?
-
View User Profile
-
Send Message
Posted Jul 23, 2016Is the author of this plugin still alive ?? We need update!!!
-
View User Profile
-
Send Message
Posted Jul 5, 2016Why aren't you updating this ? Please update to latest Spigot this resouce or at least update to latest wg custom flag auto support. But say something or maybe you should delet the resuorce at all if you are not going to update anymore
-
View User Profile
-
Send Message
Posted Jun 30, 2016Yes, the plugin need an update to last worldguard.
We need to use old worldguard version in 1.10 or flags are unknow.
-
View User Profile
-
Send Message
Posted Jun 18, 2016Please update the custom flag modules to support hooking into WG6's custom flag API directly. Instabreak flag for example broke entirely. :(
-
View User Profile
-
Send Message
Posted Jun 17, 2016is there any way to have this updated? please developer respond...i need this
-
View User Profile
-
Send Message
Posted Jun 15, 2016Please update to latest 1.10 server
-
View User Profile
-
Send Message
Posted Apr 27, 2016Good helpful flags, thanks.