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.
@lANTHONYl
I've been struggling with this myself.
Looks like WorldGuard has changed a little bit.
Here's the flag info page
exit: allow
exit-group: ALL
The above can be accomplished with /region flag exit <region> and
/region flag exit-group <region>
(only specifiy the region argument to clear the flag)
entry: allow
entry-group: members
I'm not sure about the above. It looks like the entry-group flag doesn't exist anymore.
Maybe just entry: members. I haven't tried this.
The construct flag probably works the same way.
I should look into this again. I gave up a little quick last time.
The source is updated? I wanna translate it D:
Trying to set up entry/exit flags
The syntax there is taken from regions.yml after using /rg flag <id> entry -g
/rg flag <id> exit-group seems not to work, although it does not get auto-removed when using the proper syntax as shown above.
Is there anyway this can function as expected?
@Chibibis
Your welcome. Sorry I was slow to understand you haha.
I'ts late here too.
By the way, forget about 3.3... it's already 3.4 haha.
I'm not having a good day :P
It is late night in my country.So i will check it tomorrow. Thanks for nice plugin and quick feedback.Cheers!
@Chibibis
Oh now I understand... You're right, flags are not properly saved.
I fixed it. I'm uploading 3.3 now. You have to wait for file approval
"You said another thing. You say, when you do /region reload, somehow.. the "exact" flags of supersafe" are set to "every" region? That sounds crazy!!!"
No :)) I mean that after /region reload my supersafe preset disappearing. For example: i claimed a new region and made it supersafe with /flagger set MyRegionName supersafe. After that im logging with another character and type : /rg reload . And now my region isnt supersafe.Creeper-explosion allowed again,enderman griefing too,pvp,etc.
@Chibibis
Hmm.. you're right about
/region reload
permission. On my test server... I can do the command.. even if I have basically no permissions. That's a WorldGuard problem.But... all the regions still have the flags they've always had.
@Chibibis
You say, players can do the command... eventhough they don't have permission.
That sounds like you configured permissions wrong! And they DO HAVE the permission! What is the permission for
/region reload
?You said another thing. You say, when you do
/region reload
, somehow.. the "exact" flags of supersafe" are set to "every" region? That sounds crazy!!!I will test it now... but... seriously :P
I mean that default user of the server without any permissions can type " /rg reload (/region reload),and it will reset "supersafe" preset of all regions on the server map,even those,which are not privated by him. Is it WorldGuard problem?
@Chibibis
/flagger reload
works fineYou're confusing this plugin with the real WorldGuard
@Chibibis
excuse me, what is /rg ?
@Chibibis
orly? crap. i will fix it
Hi.Thanks for plugin!But i have an issue: any character of my server can type /rg reload,and all settings of all of the regions will be reset from "supersafe" preset.Even default users,who have no "worldguardflagger.reload" permission.
I updated for CB 1.2.5-R1.2
And WorldGuard 5.5.2
Wait for WorldGuardFlagger 3.2 to be approved
Please update! Just found this! Looks amazing, I'm sick of retyping those world guard flags. Please Pretty Pretty please!
Any chance you could compile for 1.2.5 and the newer versions of WG? Pretty please? :)
love this plugin, would be nice if creating new regions they would jsut take on this stuff, seems like something that should be built right into worldguard quite honestly.
@Mtihc
have you tried talking to sk89q?
@lANTHONYl
Yeah, I know right. Maybe I should make one of those "pull requests" on github.
But all the work will be for nothing if they don't accept :P