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.
@Mtihc
Very good. I appreciate your plugin as it provides much needed function to Worldguard. Although i must admit this seems like something that should be built right into it.
@lANTHONYl
I don't expect any problems. I think, only if the bukkit team changes core stuff, like commands and configurations. But it will be alright.
Otherwise I will make an update asap. I promise :)
so if it's kinda both, will we see any issue with the upcoming 1.2.5?
@jisaacs1207
Hmm, sounds like it's not saving properly.
Good thing you mentioned that it works, manually.
This means it's probably my problem :)
@lANTHONYl
Mostly WorldGuard. But kind of both.
Hey, I am using the newest version of WG and my flagger flags disappear on reboot, but not if set manually. :(
Is this plugin bukkit version dependent, or Worldguard version dependent?
It says: You don't have permission. :(
@halorrr
Having problems?
Is this going to get updated?
@genesis_aix
You can set flags to the __GLOBAL__ region... it will apply to the whole world.
You still have to watch out with parents and priority.
I guess you should give __GLOBAL__ a high priority
@genesis_aix
Update what? The region area itself? How would that work? You can only select 1 region at a time...
No matter if you're talking about owners, members, parent, priority, ids or area...
Either way... no this plugin cannot update all regions with one command.
Edit: Haha my bad. You're talking about flags of course... I thought i was looking at the comments of another plugin 8-)
Can this plug update all existing regions in a world with one command? My guess is no, but i will still ask. Its sad that this is not possible to do with Worldguard itself.
Just updated WorldGuardFlagger to 3.0.
Read this changelog.
You have to change all the mob-names. Add an underscore inbetween words.
I listed all the mob-names that need to be changed in the changelog.
@Mtihc
flagger worked fine until upgrade to latest WolrdGuard, I'll try to do more testing myself to give you more info today.
I hope this will work fine, its great plugin that saves lot of time and fingerpain :)
@Wondrej
Wait a second. Do you have WorldGuard installed? nvm: I'm blind. I'm not sure what that means. But I will not go out of my way to test it. I bet it will be fixed after I update.
@beanssprout
Glad to hear it still works. I'm not really paying attention to this plugn. (i should)
It could use an update anyway. I will do it some time or another.
I could only think of /flagger unset <region> [world] <preset>
It would "clear" the flags that are in a preset... on a region.
In other words... just like the clear command, but only the flags in a preset.
Another thing.. the difference between the commands presets and flags, is confusing.
But I better not change that now... now that you're used to it.
@Mtihc
Sounds Great! No rush, plugin still works :D
Yeah I can't think of any other features really. It is a pretty straight forward plugin its a perfect KISS = keep it short and simple haha
@beanssprout
Haha
Not yet. I am working on last-minute-school stuff.. as we speak.
After tomorrow I have 1 more assesment on thursday.
So I will be bored out of my mind again soon.
In the update.. I will use the "core" code.. that I use in my newest plugins. (I've learned some stuff since I made this plugin).
So I will rewrite code.. and test it. There will be no new features or anything. Right?
@Mtihc
Any news on the update? haha Yes I am still using your plugins, I think I was the first one too haha <3