Home›Java›Mods›WorldGuard Extra Flags
ModsJava

WorldGuard Extra Flags

Java mod listed for Minecraft 1.20–1.21. Downloads from the MC Java Mods app on Android.

⬇ Download on Spigot
Dev builds:
GitHub Actions


Discord:
Invite link​

WorldGuard ExtraFlags is extension to WorldGuard that adds 26 new flags listed below!
How to use?
Simply use the WorldGuard region flag command. All of the flags can be interacted that way, just like any other flag.

Minecraft & WorldGuard version support:
To make sure that the plugin works correctly, you need to have compatible version of the WorldGuard and Minecraft alongside the plugin itself. The following list contains the supported versions.

Frequently Asked Questions (FAQ):

Flag bypass behavior:
The following applies to versions of 4.2.0 and above.
By default, administrators bypass most of the flags to allow region management. This can be disabled by using WorldGuard's command, /rg bypass.

You can also change that administrators do not have bypass enabled by default with the WorldGuard's configuration option disable-bypass-by-default.

The following applies to versions of 4.1.5 and older. The /rg bypass is not respected and the following permission node is used instead to determine whatever the player bypasses the flag by default:

worldguard.region.bypass.<world>.<region>.<flag>

Please also note that if you are OP, you have all the permissions, meaning that you are bypassing every flag the plugin provides.

Flag is not working:
Make sure you understand the flag bypass behavior and that you have use-player-move-event set to true in WorldGuard's config.

A word about giving out permissions with command-on flags.
Unless you want to permanently give out permissions to players upon entering/exiting a region, you should NEVER use the command-on-flag's to give out temporary permissions. This comes down to security, reliability and performance impact.

Instead, you can use permission context ( https://luckperms.net/wiki/Context) that determines which permissions are allowed inside the region. This also requires an extension for LuckPerms which can be acquired from here: https://github.com/LuckPerms/ExtraContexts

Can I get the player's username when executing a command?
Yes, you can use the %username% placeholder.

Can I use multiple commands in the command-on flags?
Yes, use comma to separate them.

What if my command contains commas?
Wrap the command in quotation marks and it will be seen as one whole command. As for example this can be encountered when using the title command, so the correct way to define it would be:

/rg flag region-name console-command-on-entry "title %username% title {"text":"Hey!","color":"green"}"

Server crashes when using teleport commands in command-on-entry or in command-on-exit:
Using teleport commands is not supported scenario and there is a special flags for them; teleport-on-entry and teleport-on-exit. These flags are more careful when teleporting the player around and tries to prevent any circular teleport loops.

A word about custom commands
Custom commands do not work as they are not "real" commands. Using plugins like Skript where you can define your own commands are seen as "fake" commands and their existence is unknown to other plugins.

The developers of said plugins should provide alternative way to execute these commands to allow compatibility.

When using keep-inventory flag my inventory gets duplicated:
This is not the plugins fault and some other plugin is conflicting with the flag.

What are the values for play-sounds?
These values depend on your Minecraft server version. Any value that works with /playsound works as value here.

What are the values for walk-speed?
The flag uses same values as Minecraft does. The default value being 0.2.

Respawn-location flag is not working:
Make sure you have read the section above about troubleshooting.

Some other plugins are known to cause problems with respawn-location flag by choosing some other location to respawn the player instead of the location provided by the flag.

If you are using Essentials you can fix this by changing the respawn-listener-priority to lowest or low in the Essentials config.

Not working on Thermos:
https://github.com/CyberdyneCC/Thermos/issues/498#issuecomment-247083549

Need help?
You may ask for additional help in the #wg-extra-flags channel on Discord. Click here for invite link.

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

WorldGuard Extra Flags is a free Minecraft Java mod. Compatible with Minecraft 1.20.6, 1.21. Downloaded 308,667 times (via Spigot). Download it and open it directly in the game.

Explore more