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.
@der_mewin
Im looking to install it..this is my situation, i have a dedicated server with myphpadmin and webmin to manage database, but my worldguard plugin dont use mysql to manage ragions xD, so what i have to do exactly to install your plugin?
I have to create a database called as the "included worldflags.sql"? than, into it, i have to create the tables? which tables?
@der_mewin
Ok i'll post there next time.
With out this plugin my server wouldn't be complete
I use it for the wgenderpearlflag plugin
- Sean
@seane96
@ni_r3ng3r_ni
Seriously. Wait atleast a day or two after a new version is released until u start shouting "update!".
There's not even a betaversion of Craftbukkit out yet.
Hey,
Here is the error print out: http://pastebin.com/uAH403sX
Also thanks for a great plugin keep the good work up!!
- Sean
Update the plugin for 1.4.4 please :)
@ni_r3ng3r_ni
@Darkblader10
Please post your problems in the forum, I will not answer in the comments section.
<sub>Btw: I will compile it for Java 6 soon.</sub>
I have
I get the error: "Unsupported major.minor version 51.0"
Pls compile it in Java 6
@sception
It should work with 1.4. It does so for me and if it does not work for you check your Java version.
not working for 1.4 right? or wont' it matter?
@Juelz0312
Whats is your exact problem? Of course the flags should be saved, I don't get what you problem is.
Why do the flags keep on being saved? And how do I stop that?
@CrimeW
Thats weird, because the error says you are running an older version. Maybe check if you have started the server with the correct Java version?
@der_mewin
Just checked java.com, I run the latest stable version: Version 7 Update 9
@CrimeW
What version of Java do you run on your server?
I've tried to install your plugin but to me doesn't work : (
I'm running the latest version of craftbukkit, and i've tried your latest release
@epictech300
fixed in 1.3.1 ^^
It doesn't seem to be saving the flags anymore :(