RegionPerms
Description
Users will gain a certain permission node when entering a WorldGuard region for the first time. This is designed to recreate a "Skyrim type" fast travel system into Minecraft by giving users a warp's perm node only when they arrive there for the first time. But, this can be used for anything, really. Your imagination is the limit :p
This is dependent on WorldGuard, and any permissions plugin.
How will this work?
First, you will need a region with a name. Let's call it CitySpawn, for example. So with WorldGuard wand you would select your region and make the region like normal.
/region define CitySpawn
Now that the region is complete, its time to add the flag to the region.
/region flag CitySpawn give-perm-node essentials.warps.cityspawn
Now any user that enters this region will get the perm node to be able to use the warp command to get there anytime they want.
It's that simple.
Enjoy! ^_^
New in v1.1!
Variables now work in the player notification. More variables also added! Here's all the variables available:
- {user}
- The username of the player.
- {dispname}
- The custom display name of the player. (defaults to regular name if none exists)
- {node}
- The permission node being set.
- {region}
- The region that triggered the action.
- {world}
- The world in which this happened.
New in v1.2!
Added a new WorldGuard flag "remove-perm-node" that will remove a permission node when a player exits the region! Just set it up and use it the same way as the original "give-perm-node" flag.
Commands
none
Permissions
none
Default config.yml
Version 1.2
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | # Enable debug info in console debug-mode: false # Enable colors in console output color-logs: true # Command to set a perm node to a user #(PermmissionsBukkit v2.x Example) give-perm-command: perms player setperm {user} {node} true # Command to remove a perm node from a user #(PermmissionsBukkit v2.x Example) remove-perm-command: perms player unsetperm {user} {node} # Should we notify the player? notify-player: true # What should we tell the player when a permission was set? notify-give-message: '&dYour permissions have been updated.' # What should we tell the player when a permission was removed? notify-remove-message: '&dYour permissions have been updated.' |
Todo
Add new flag to remove perm node on exit region(Added in v1.2)
Have a suggestion? Leave a comment!
Metrics
This plugin uses metrics to collect stats! It only collect basic things such as version type, and players online. If you want to see everything, click on the graph. Go into /plugins/PluginMetrics/config.yml to disable stat collecting if you wish.
Hello, is this plugin still compatible?
@BillyGalbreath The link (to the spigot resource) doesn't appear to work and searches on Spigot come up blank? Did it get removed?
And a question: Does RegionPerms add/remove a perm if a player teleports into or out of a region?
@JPTech234 YOu can do this now, assuming it is still an issue, by granting a -negated.permission
I have continued this plugin over on SpigotMC website with many improvements ^_^
https://www.spigotmc.org/resources/regionperms.26419/
@Ordrox
Same exact problem here.
Hi! I've a lil' bug... Whenever someone walk, anywhere on the map it create an error (spamming like hell xD)
Plus, give-perm-node is recognized and can be added as a flag to regions but remove-perm-node doesn't exist (and i'm using RegionPerms v1.2)
here: http:pastebin.com/v6aGd2nD Using spigot 1.8.6 and RegionPerms v1.2 My perm plugin is PEX.
Ok I have another Suggestion. Make It be not depend on any permission plugin.so it can add permissions with bukkit.Because thats what I got: a Huge Console spam because of many players Entering and Leaving an region.And with GroupManager you cannot disable messages.And I don't believe another permission plugins have that feature,if they have they will lack other things that groupmanager have. I have seen it in pvparena plugin.This plugin could add permission upon entering a pvp arena.
I have suggestion: make us be able to add multiple permissions so we will write /rg flag arena give-perm-node bukkit.perm1,bukkit.perm2,bukkit.perm3 and /rg flag arena remove-perm-node bukkit.perm1,bukkit.perm2,bukkit.perm3
Can you set multiple permissions at one time for a specific region?
@DarkovaX
@AtracadorThe
There should be no need for an update. If you have any specific problems please open a ticket. ;)
Any chance of an update?
Hello, i have this really big problem that give-perm-node works everytime, but remove-perm-node only works if the player is opped in the server!
Would like to use this in 1.7.10 but it seems I keep getting errors and conflicts with WorldGuard. It needs an update.
Will this help with WorldGuard/Grief Prevention conflict; two mods that can claim land. Say I don't want people claiming via Grief Prevention in my regions (other than global) can I just set perms to off and when they leave they come back?
Thank you!
Is it possible to add these two features: Removing permissions when they enter the region Adding permissions when they leave the region?
Btw this plugin is superb and was almost everything I was looking for!
Simple and elegant so hassling config files VERY straightfoward
Ampayne2 is taking over this project.
@radianceServer
Fly permissions and regions have always been weird since the beginning of time. I honestly have no advice other than to make sure you dont have overlapping regions or a master negated perm node somewhere.
@LHfreeman
It may work on 1.6.2 (not tested). The only issue that might happen is an incompatible WG version (the one for 1.6.2 might have missing or changed methods). Only way to know is to try. ;)
No for 1.6.2 ? :(
Hey There! This Plugin is exactly what i need! However, I'm having a problem that when the player types /fly there are having the message you do not have access to that command. I am typing the command for the region shop /region flag shop give-perm-node essentials.fly Any help would be great thx.
This isn't working for me...for starters it isn't giving the permissions, and it also seems to have removed greeting/farewell messages...?
Edit: Sorry, my fault - turns out greeting/farewell messages don't work when overlapping regions, and I made a typo doing the permissions command. Thanks a bunch, Dev! This plugin's helped me a lot :)
Works absolutely beautifully! Smooth and well-integrated with the WG plugin!