WorldGuardFlagger
Apply "flag presets" to WorldGuard regions
This plugin requires WorldGuard, of course.
Description
I found myself setting the same flags over and over on different regions with WorldGuard.
So I made this plugin. This plugin allows you to set a bunch of region flags with one command.
There's also a command to clear all flags from a region.
Install
- Download WorldGuardFlagger.jar
- Place it in your server's plugins folder
- Restart your server, or execute /reload
Use the same steps for updating this plugin. Unless the changelog tells you otherwise.
Configuration
The config.yml
file will automatically be created in the plugins/WorldGuardFlagger
folder.
It includes one default preset called supersafe.
When you add your own preset, use spaces instead of tabs to indent your code.
For example:
flagpresets: mypreset: pvp: deny tnt: deny fire-spread: deny creeper-explosion: deny enderman-grief: deny myotherpreset: greeting: Welcome farewell: Farewell deny-spawn: Creeper,Enderman,Pig_Zombie
This website can be useful when you have errors in your config.yml
file.
Commands
All commands can be executed in-game. But also from the console window.
Command | Description |
---|---|
/flagger reload | Reload the configuration file |
/flagger help /flagger ? | Show command help |
/flagger set <region> [world] <preset> | Apply a flag preset to a WorldGuard region |
/flagger clear <region> [world] | Clear all flags from a WorldGuard region |
/flagger presets [page] | Show all presets that you're allowed to use |
/flagger flags [page] | Show all of WorldGuard's flags |
/flagger flags <preset> [page] | Show info of a preset |
Permissions
Permission | Description |
---|---|
worldguardflagger.set | Apply any preset, to any region |
worldguardflagger.set.<preset> | Apply a certain preset, to any region |
worldguardflagger.set.owner | Apply any preset, to owned regions |
worldguardflagger.set.owner.<preset> | Apply a certain preset, to owned regions |
worldguardflagger.set.member | Apply any preset, to regions that you are member of |
worldguardflagger.set.member.<preset> | Apply a certain preset, to regions that you are member of |
worldguardflagger.clear | Clear all flags of any region |
worldguardflagger.clear.owner | Clear all flags of owned regions |
worldguardflagger.clear.member | Clear all flags of regions that you are member of |
worldguardflagger.presets | List presets |
worldguardflagger.flags | List flags |
worldguardflagger.reload | Reload the configuration file |
Changelog
- Version 3.0:
- Version 2.0:
- Added reload command
- Allowing any of these phrases for StateFlags and BooleanFlags: true/false, allow/deny, yes/no, on/off
- No bugs found
- Version 2.0 beta:
- Commands available through console
- Permissions per preset
- Command revamp, now /flagger <help|set|clear|presets|flags>
- Added world parameter to set/clear commands. Optional for players, mandatory for console.
- Added help command
- Added presets command
- Flags command now also shows info about value types for each WorldGuard flag
- Better feedback, when passing incorrect command arguments
- Made lists and other chat look nicer.
- Code cleanup and other things.
- Version 1.2:
- Using new Configuration system to support CB1317
- Added support for Bukkit's permissions API, so plugins like PEX and PermissionsBukkit should work.
- Added command /listflags [preset-name] [page-number]
- Removed default preset 'myfirstpreset' from the generated config.yml
- Version 1.1:
- Added seperate permission nodes for owner and member.
- Code cleanup and less chat spam.
- Version 1.0:
- First release.
Can u make it compatible with the most recent version of World Guard please?
And without an update to WG 6 this plugin is rendered nonfunctional. :/
Mtihc, any chance you could add support for WGCustomFlags? There seems to be a disconnect between the two plugins and i'm not sure if it is something that can be fixed in WGF or WGCF. Any insight would be greatly appreciated sir :)
@Mtihc
Can you put the possibility to avoid to overwrite already present flags? because i am using buyland http://dev.bukkit.org/server-mods/buyland/ , and when i create a special region, and using flagger, it overwhite all..
@Gixbit
yeah confirmed to work also with 1.5.2
@xion87
ARE YOU SURE about that? Because, something like this is what I NEEEEEED on my server.
Work fine with 1.5.1 :)
@midbifroid
Works fine for me last i checked sir.
Here's an example:
heal_1:
greeting: Get well, %name%.
heal-delay: 10
heal-amount: 1
heal-max-health: 15
the heal-delay and heal-amount, like feed an other numeric values still not working :( i must set it directly with WW
@ImCraxl
Well, it still works on 1.4.6 so that's good :)
1.4.6?
@Mtihc
I know that wgflagger is still working on 1.3.2, any idea about recent dev builds?
Better late than never lol
@lANTHONYl
I kindof forgot about that change in WorldGuard....
I don't think I will make a fix for that.
@lANTHONYl
Sorry for the late response.
Yes, the plugin does owner-checks. That's what the "owner" part is for, in the permission nodes. I will update this page, so it explains the permissions better.
@bigazzaman
So it doesn't work?
It works fine. Don't expect an update with every new CB version. Although that's probably what I'm supposed to do.
@Duskterror
Just use the current version. And ask for an update when you have bugs.
Are you going to update to 1.3.2, or should I just do all the areas manually?
is it possible to upgrade this to work with 1.3.1/1.3.2 ???
btw... Does WorldGuardFlagger do owner checks? If i hand out permission to use this, will players be able to apply flag presets to any WorldGuard region?
It would be nice to be able to give players 1 permission to use these flag presets instead of a dozen worldguard.region.flag.flags.<flag>.* permissions.
@Mtihc
I have figured entry / exit / and construct flags, and updated http://wiki.sk89q.com/wiki/WorldGuard/Regions/Flags#Group to help explain it.
@FurmigaHumana
Yes, it's updated :)