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.
@semirotta
WG Custom Flags does not add any commands, you can access the added flags with the default WorldGuard /region command.
wtf are commands for this?...
@MoejoeAw44
This is a dependency of WGDropFlags and definitely compatible with it.
PLEASE could you make it compatable with WGDropFlags? Please I really need it today.
@baldursgate3
What problems do you have with 1.2.5?
could you do it for 1.2.5?
@JohnyK9
There should be no problem with the current version and the new Bukkit releases.
Can u please update this to 1.6.2. Would be very appreciated!
@baldursgate3
What doesn't work in 1.2.5?
Will you be able to make it compatible with 1.2.5 soon?
@der_mewin
Ok sorry!
@deleted_8537216
And again -.-
I have a problem.. this plugin doesn't seem to work at all this nor the WorldGuard Region Effects plugin I've installed it using the "flat" file method but still nothing and I also did </region flag [world/region] effects slow 3> and it just gives me a list of flags that are in WorldGuard.
@ParkintheDark98
You can deny mob spawning in the
__global__
region and allow it in the region of the mob arena ;) .Hi. I was Wondering if Anyone Could Show Or Tell Me How To Make A "Mob Arena" Or a place Where Mobs Can Spawn but Not Anywhere else in the spawn. i think its something with the "parents and whcih is which" plz Help . Thanks
Hey dude I was wondering can you tell me? Does this protect spawn from withers and can you tell me how to go the flag command my region is 'spawn' of you could help i would be so grateful :)
@nxtguy
Not yet, because I had some problems when writing it and I have many other things to do now, but I think it will be finished soon ;) .
@jisaacs1207
Sorry, but
@der_mewin
Hello, great plugin! One question though, (I tried searching around and didn't see anyone else asking it), the flags seem to get wiped every so often.
I am currently using MCPC and FTB, along with these plugins :
Plugins (58): PlugMan, BukkitCompat, VoxelSniper, CleanChat, CustomServerMessages, Buycraft, Vault, Multiverse-Core, dynmap, ModReq, MinecraftBot, CombatLog, OpenInv, ProtocolLib, Votifier, SBC, Minequery, WorldEdit, Towny, Skript, PermissionsEx, Questioner, WorldGuard, OddItem, WorldGuardFlagger, ChestRestock, TekkitCustomizer, iConomy, DailyBonus, ClearLag, Modifyworld, IcePvPControl, Essentials, StopThatLag, WorldBorder, Multiverse-Portals, ScriptBlock, VotifierScripts, Dynmap-WorldGuard, Register, HawkEye, EssentialsChat, WGCustomFlags, 5kOutpost, TownyChat, EssentialsSpawn, EssentialsGeoIP, Multiverse-NetherPortals, LWC, EssentialsAntiBuild, DeathChest, Autorank, Multiverse-EssentialsSupport, WGFlyFlag, WGRegionEffects, ChestShop, Dynmap-Towny, SimpleRegionMarket,
I am using WGCustomFlags version 1.5.2.
Is there any way to stop the flags from being randomly wiped? Should I manually add them to the flatfile WG region list or something? I have WGCustomFlags set to auto, but have tried flat as well.
@RossGosling
You can apply the flag to the
__global__
region which represents the whole current world.