WorldGuard Custom Flags

Description

WorldGuard 6 users: download the latest beta build of my plugins here.

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:

  1. after dropping the jar-file into your "plugins" folder start the server one time
  2. you can ignore the error message this will produce
  3. stop the server
  4. now go to "plugins/WGCustomFlags" and edit "config.yml"
  5. simply change the "save-handler" property to "flat" to force flat file saving
  6. 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.

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of Layania Layania May 06, 2015 at 08:49 UTC - 0 likes

    Thanks to this wonderfull plugin :)

    Last edited May 06, 2015 by Layania
  • Avatar of WhosHenry WhosHenry May 05, 2015 at 12:57 UTC - 0 likes

    Posted a bug in the forums about the Region Effects and Fly Flag.

  • Avatar of Headpipe Headpipe May 03, 2015 at 23:07 UTC - 0 likes

    Latest Dev Build is working fine with 1.8.3. Migrated from yaml to mysql this week and custom flags aren't working anymore. They are still in the mysql table but they don't work.

    Imported the custom flags mysql file (thought that would be not neccessary anymore with wg6) in my database and now it's working fine.

    ZBDH908882e584d1db04eca8c285e65b09aa

  • Avatar of NoHoPeLess NoHoPeLess Apr 25, 2015 at 04:44 UTC - 0 likes

    @xion87: Go

    Yes the falldamage flag dont work with 1.8.3+ i think this flag would be never work... sad...

    see: http://dev.bukkit.org/bukkit-plugins/worldguard-playerdamage-flags/

    Please dear developer, please update this :)

    BalayaCraft! Der etwas andere Server!

    BalayaCraft! Server-IP server.balayacraft.de | BalayaCraft-Website | Facebook | Twitter | Youtube |

  • Avatar of iversen0 iversen0 Apr 09, 2015 at 18:30 UTC - 0 likes

    o,o

    [13:29:50 ERROR]: Could not pass event PlayerMoveEvent to WorldGuard v6.0.0-beta-05.1569- with custom flags plugin.
    org.bukkit.event.EventException
    >       at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:305) ~[spigot.jar:git-Spigot-d0d1d87-bc03b6f]
    >       at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot.jar:git-Spigot-d0d1d87-bc03b6f]
    >       at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot.jar:git-Spigot-d0d1d87-bc03b6f]
    >       at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot.jar:git-Spigot-d0d1d87-bc03b6f]
    >       at net.minecraft.server.v1_8_R1.PlayerConnection.a(PlayerConnection.java:255) [spigot.jar:git-Spigot-d0d1d87-bc03b6f]
    >       at net.minecraft.server.v1_8_R1.PacketPlayInFlying.a(SourceFile:126) [spigot.jar:git-Spigot-d0d1d87-bc03b6f]
    >       at net.minecraft.server.v1_8_R1.PacketPlayInPosition.a(SourceFile:57) [spigot.jar:git-Spigot-d0d1d87-bc03b6f]
    >       at net.minecraft.server.v1_8_R1.PacketHandleTask.run(SourceFile:13) [spigot.jar:git-Spigot-d0d1d87-bc03b6f]
    >       at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [?:1.7.0_65]
    >       at java.util.concurrent.FutureTask.run(FutureTask.java:262) [?:1.7.0_65]
    >       at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:683) [spigot.jar:git-Spigot-d0d1d87-bc03b6f]
    >       at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:316) [spigot.jar:git-Spigot-d0d1d87-bc03b6f]
    >       at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:623) [spigot.jar:git-Spigot-d0d1d87-bc03b6f]
    >       at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:526) [spigot.jar:git-Spigot-d0d1d87-bc03b6f]
    >       at java.lang.Thread.run(Thread.java:745) [?:1.7.0_65]
    Caused by: java.lang.IncompatibleClassChangeError: Found interface com.sk89q.worldguard.protection.ApplicableRegionSet, but class was expected
    >       at com.mewin.WGRegionEvents.WGRegionEventsListener.updateRegions(WGRegionEventsListener.java:130) ~[?:?]
    >       at com.mewin.WGRegionEvents.WGRegionEventsListener.onPlayerMove(WGRegionEventsListener.java:84) ~[?:?]
    >       at sun.reflect.GeneratedMethodAccessor116.invoke(Unknown Source) ~[?:?]
    >       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_65]
    >       at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_65]
    >       at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301) ~[spigot.jar:git-Spigot-d0d1d87-bc03b6f]
    >       ... 14 more
    

    Dev build

  • Avatar of xion87 xion87 Mar 25, 2015 at 16:53 UTC - 1 like

    falling damage flag don't work anymore, falling damage flag is missing, no flag added

  • Avatar of VoxaDub VoxaDub Mar 25, 2015 at 08:39 UTC - 0 likes

    Is this going to be updated to 1.8 anytime soon?

  • Avatar of resitancedude resitancedude Mar 13, 2015 at 23:01 UTC - 0 likes

    @der_mewin: Go

    Can you add this ? - If you have a certain item ( suport lore and cutom name ) you can enter the region, but if you don't have it, you can't enter ?

  • Avatar of TheOnlyRealTGS TheOnlyRealTGS Mar 09, 2015 at 20:47 UTC - 0 likes

    Could you update this to 1.8.3?

    Owner of MC-Simple Gaming! Hope to see you there :)
    Need a free BuyCraft alternative? Try MinecraftMarket! | Need a working Trade plugin? Try SimpleTrading!

    http://minecraft-mp.com/regular-banner-17943-3.png

  • Avatar of NathanWolf NathanWolf Feb 23, 2015 at 20:01 UTC - 0 likes

    Would it be at all possible to make it so custom flags don't disappear if the plugin that registers them fails to load?

    I've had all my flags vanish a few times, like when disabling a plugin for testing. It can be a real pain to fix!

    Thanks for this awesome plugin, I am using several of your variants (custom spawn location, keep in, commands) as well as have integrated support into my own plugin for custom lists- it just works awesomely, except for this one little nitpick.

    BFAK:1034,0c13cf5d490f7c7bab438f2c4298c44509c85d916593cec4815c2ae51a52ecf6

Whats your favourite WorldGuard Custom Flags plugin?

  1. Choice:

  1. Results
  2. 6 comments

Facts

Date created
Oct 10, 2012
Category
Last update
Apr 04, 2014
Development stage
Release
License
GNU General Public License version 3 (GPLv3)
Curse link
WorldGuard Custom Flags
Downloads
49,347
Recent files

Authors

Relationships

Required dependency
WorldGuard