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.
Hey! Thank You for plugin! It saved me a lot of time! :)
please add /region flag (id) item-durability deny.
Has anyone tried using WorldGuardFlagger in conjunction with WGCustomFlags? I've tried so many times, but it just doesn't seem to work. I would be very appreciative if someone could shed some light on this :)
WorldGuard Texture Pack Flag
This plugin stopped working because of directory name changes from C:\Users\randomguy\AppData\Roaming\.minecraft\tesxturepacks to C:\Users\randomguy\AppData\Roaming\.minecraft\resourcepacks and minecraft changed the listeners from texture to resource in the classes. There was an issue with 1.6.2 where .zips could not work which has been fixed in 1.6.4 so if someone could pick this up and fix the directory issues and the listener issues this plugin will probably work just fine. I personally have no idea how to dissect this plugin to change the directory/listener issues but I know someone does so please someone pick this up and fix it for us.
@WhosHenry
Try putting the keep inventory perm from multiverse inventories on your user section in your perms
@WhosHenry
I don't think this should be a problem. Maybe post your problem in the forum.
My keep-inventory flag isn't working on my server which is running the latest of all required plugins and on 1.6.2. I also have Multiverse inventories installed which might conflict with it, is this a known problem?
Thanks
Is there anything available that adds vehicle-entry and vehicle-exit flags? Would be perfect for roller coasters and trains.
Have had to switch to using flat file for the moment because after updating to 1.6 it must have removed the worldflags table in the MySQL database.
@semirotta
I get unknown flag with 'deny-damage' and it lists flags which only has allow-damage as a custom.
Getting fixed invalid material message using:
CraftBukkit version 1.6.2-R0.2 Build 2851
WorldGuard Custom Flags 1.6
WGBlockRestricter version 1.7
http://dev.bukkit.org/bukkit-plugins/worldguard-block-restricter/files/10-wg-block-restricter-1-6-2/ :
"fixed invalid material message"
Posting here as well as http://dev.bukkit.org/bukkit-plugins/worldguard-custom-flags/forum/problems/issues/56602-issue-with-worldflags/ :
I am using the latest versions of everything:
On server stop:
On server start:
Please can you advise.
The source of your plugin is not on BukkitDev, therefore it will not work on CraftBukkitUpToDate. Please add the Source to BukkitDev, so you can add compatibility! Thanks!
For instructions: http://dev.bukkit.org/bukkit-plugins/craftbukkituptodate/#w-my-plugin-didnt-supported-how-i-get-it-to-work-with
@der_mewin
dunno what i did but now it started to work? it just kept saying unknown flag effects but now it works? wtf... i think one of these worldguard, worldguard custom flags or worldguard region effects did not load properly... odd
@semirotta
And what about WGRegionEffects?
@der_mewin
31.07 21:15:26 [Server] INFO Configuration loaded.
31.07 21:15:26 [Server] INFO Loading configuration...
31.07 21:15:26 [Server] INFO Enabling WGCustomFlags v1.6
@semirotta
WGRegionEffects obviously did not load. Are there any errors in your server log?
@der_mewin
"unknown flag" and lists all the flags... wtf
Plugins (35): WorldBorder, bPermissions, LinksOnSigns, PTweaks, WorldEdit, Vault, HealthBar, WorldGuard, SilkSpawners, MCPacks, MChat, Shopkeepers, UnhealthyDeath, CoreProtect, LimitedCreative, CrystalCraft, ZavAutoMessager, Lockette, ProtocolLib, FoundOres Revisited, RandomTP, WGCustomFlags, MobName, MakeYourOwnCommands, HorseTools, Essentials, AncientGates, ShowCaseStandalone, OtherDrops, EssentialsSpawn, Enjin Minecraft Plugin, NoItem, EssentialsAntiBuild, MCBans, BKCommonLib
@semirotta
should work. What message do you get when typing this? Are you sure WGRegionEffects loaded properly?
@der_mewin
how exactly?
since /region flag REGION WHAT ?
i have no idea how to make it work
I used /region flag REGION effects slow -> not working i tried /region flag REGION slow <- not working?