BattleProtections
BattleProtections is a lightweight protection module that uses WorldGuard. Players can select the regions they would like to protect, as if they are using worldguard, but the size and number of protected areas they can create are limited by the permissions you give them. All regions inherit properties from a single Parent Region, making it easy to customize what Flags you want all regions to have.
Features
- Control the size of any player protected region
- Control the number of player protected regions
- Control the totalArea of the player protected regions
- Everything inherits from a single parent. "PlayerDefault"
- size,number, and totalArea can be customized per permission group or player
- Players can share their region with other players
Commands
- /protect add <region>
- /protect delete <region>
- /protect share <region> <player>
- /protect unshare <region> <player>
- /protect list
Requirements
- WorldEdit/WorldGuard
- Vault and some Permissions plugin that allows Integer options.
Permissions
- nRegions: <int> <- how many regions the player can have
- allowedPerRegionArea: <int> <- how much area per region they can protect
- allowedTotalArea: <int> <- how much total area can be protected
- prot.share : allow player to share region
- prot.unshare : allow player to unshare region
- prot.add : player can add regions
- prot.delete : player can delete regions
Adding Integer Permissions
See this Permissions. If you know the commands for other perm systems let me know and i'll update the list!
@jeefblanch
Thanks!
Here is an example setup for the PermissionsEx config file and BattleProtections
In this example the player group "Player" (the default group for everybody) they are given the perms
prot.*
which means everything from the BattleProtections
and then they are assigned "options" in the options: tag
the name of the option, a colon, and then the integer is the syntax
Example:
Uhm not sure how to setup permissions integer w/ pex???
@kahlilnc
That's because right now there are no configs, so no folder needs to be made. Right now its all perms based.
No folder or config loads for me??
@alkarinv
Haha, makes a lot more sense when you say it like that. Thanks again!
@Faldonboy
BattleProtections only counts the volume, nregions, of it's regions. That way you can make a player an owner of say a shop that has a protected region, without taking up their given allotments.
@alkarinv
I figured but wasn't sure, thanks. Last question I can think of atm, and it might be that its supposed to do this but it struck me as a little weird.
when I do /protect list it shows all of the regions I'm a member of. I set myself as owner of one of those regions and it removed the region from Member Regions but it didn't add to the Owner Regions number or take up any of my allowed volume.
@Faldonboy
in almost all perm systems the stuff you assign to players directly overrides their group. bPerms is definitely like this.
@alkarinv
Awesome! :D Next question, what takes priority, stuff assigned to groups or stuff assigned to players? (group gets 20 protections but the player specifically has 30) Do they add up or does one take priority?
@Faldonboy
Those are good changes, I will definitely make those happen. But it will take a couple of days as Im swamped with the end of school atm.
Yeah, right now you have to change the PlayerDefault through WorldGuard directly.
So i'll add all those commands, in the meantime you can use.
to see the regions of a player, battle protection regions will look like "PlayerName-TheirRegionName"
@alkarinv
Yes, those worked. :) Now I have a few suggestions/requests. :P
Some way for op/admins to be able to delete/modify another players protection would be nice
Being able to define multiple "PlayerDefault" regions in a config file would be great. It would let us set different "default" flags for different users/groups(group VIP would get a healing/food flag applied while normal players wouldn't have any flags by default)
A way to view the protections of other players(an extension of /protect list, maybe.)
@Faldonboy
bPermissions, pex, groupmanager, all have integer options. I think in fact all the major perms plugins do.
I think the command for bPermissions is.
or for groups
let me know if those work and I'll add them to a help page
What permission plugins actually allow integers? I use bPermissions and I don't believe it does. Adding some way for other permission plugins to support this plugin would definitely get it more traffic.
@kahlilnc
Not sure where they put it.. but here it is.
http://dev.bukkit.org/media/files/654/516/BattleProtections.jar
:( Where downroad at?
@alkarinv
Thank you man!!!
So what worldguard perms did you need? just the pos one?
@jeefblanch
omfg!!!! you are totally right...
updating page now!!
yay yay yayyyy alk i fixed it :)
you forgot to mention that you need to enable permissions for
prot.*
i noticed it in the code and had a DUH moment.
working 100% :D
btw i'm playing on ironspire.net now if you ever wanna play
@jeefblanch
Strange, ill have to look into it. Works fine for me so i wonder whats up.