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.
@AndrewsPanda
Haha thanks. And thanks for taking the time to look at my other plugins. I'm flattered :)
This plugin rocks! That is all
@Wondrej
I should test it myself. I guess it's time to update this plugin
after upgrading worldguard to newest version, this error came up:
@Mtihc
Yeah, It does, No problem. I can wait patiently. No issues so far.
@beanssprout
This plugin works fine with Minecraft 1.0 (Bukkit R2)
@beanssprout
I wasn't planning on it. Maybe I should. But it will probably not be any time soon...
I am working on a quiz-plugin. And I also want to update another plugin of mine. So WorldGuardFlagger has a low priority. Sorry.
Will there be an update for 1.0 Thanks. Still loving your plugins. :D
@Mtihc
Thank you again, sir!
@Pythros
Forget what I said. I am almost finished already xD
I merged the 2 mentioned updates into 1. And It's almost done. I will call it version 2.0beta. Untill I'm sure it's bug-free.
@Pythros
Next update will include a command revamp. Changed commands to /flagger set, /flagger clear, etc. (i wanted to create /region setflags, but that doesn't work)
I will add your request with the update after that!
I'm busy with school the next 2 weeks, so it will probably take a little while.
God send!
Request: Would it be possible for you to be able to have a permission node per preset we make? Reason to be is allow certain groups to use certain flag presets but not all of them. Essentials uses this technique with its warps.
@mafima
You can use true instead of allow, and false instead of deny.
But only in my config-file. You cannot use true/false in WorldGuard commands.
I have not been active on here lately. Sorry for that.
I will definetaly update this plugin again, so the new build of CB supports it. (done)
I will keep supporting the old Permissions plugin. And add support for PEX and PermissionsBukkit. Others on request maybe?
@churooos
Actually, that's already built-in. But beware, WorldGuard does not have that function. WorldGuard requires "allow" and "deny".
@mafima
yeah maybe if mtihc will be able to convert all the flags to true and false with some kind of string conversion so whenever we input true or false it would automatically convert it to allow deny. makes it more easier for users to understand. But idk it may be something that will affect the plugin performance. But its just a simple string conversion like a couple of If statements haha.
cant i just make pvp: true ??? it would be better!
@mafima
Yes, but it is a WorldGuard function.
You can deny PVP everywhere like this:
Those are 4 underscores ( _ ) in total ;) And you should (usually) use "deny" instead of "false".
Then, allow PVP on some region you have defined yourself.
nice plugin! but... on the properties I have: pvp: false can I make a PvP area with this plugin only in that area?
@churooos
Wow, thanks for the nice words! :D