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:

  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 allochtonenking allochtonenking Jul 23, 2014 at 19:25 UTC - 0 likes

    helppppppppppppp how to set a effect in a region helppp plssssss

  • Avatar of MarkehMe MarkehMe Jun 13, 2014 at 07:19 UTC - 0 likes

    @wolfos360: Go

    @lachlan0977: Go

    @FutureForce: Go

    Are you's blind as a bat?

    "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."

    Last edited Jun 13, 2014 by MarkehMe

    Want a faster response from me? Follow me and tweet me on twitter! @markehme BFAK:90607746,6bd5d8183f15ef6bbc8c5469c97e0a66d662d410c11146dc88dbd1a9a0a8f471

  • Avatar of FutureForce FutureForce May 20, 2014 at 22:07 UTC - 0 likes

    will there be a 1.7.9 update soon ?

    ValerianaCraft

    • Problems don't exist, only challenges
  • Avatar of lachlan0977 lachlan0977 May 18, 2014 at 03:49 UTC - 0 likes

    Is this going to be made to work with 1.7.9 and time soon? This is causing major problems for me.

  • Avatar of JustinJS JustinJS May 13, 2014 at 22:10 UTC - 0 likes

    You Have Regeneration but thats for your health bar, but if u can make that for fod would it be awesome...

  • Avatar of wolfos360 wolfos360 May 10, 2014 at 19:45 UTC - 0 likes

    Doesn't work with 1.7.9 Just sayin'

  • Avatar of Bron4 Bron4 Apr 15, 2014 at 03:35 UTC - 0 likes

    Idea: Block drinkable potions from a area, not just splash

  • Avatar of vlaster77 vlaster77 Apr 12, 2014 at 12:26 UTC - 0 likes
  • Avatar of TheOnlyRealTGS TheOnlyRealTGS Apr 11, 2014 at 15:39 UTC - 0 likes

    WorldGuard 6 is out. Does it work with the custom flags?

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

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

  • Avatar of vinzenco vinzenco Apr 08, 2014 at 13:42 UTC - 0 likes

    @der_mewin: Go

    Thank you for the update :)

    Last edited Apr 08, 2014 by vinzenco

Whats your favourite WorldGuard Custom Flags plugin?

  1. Choice:

  1. Results
  2. 5 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
35,430
Recent files

Authors

Relationships

Required dependency
WorldGuard