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.


-
View User Profile
-
Send Message
Posted Dec 27, 2013@MineCrafterCity
Currently only one perm node per flag. You can try child/overlap regions for multiple perm nodes, though that's not been tested.
-
View User Profile
-
Send Message
Posted Dec 26, 2013How can I do multiple permissiosns?
-
View User Profile
-
Send Message
Posted Dec 19, 2013Wow looks cool, you can actually do a lot of nice things with this! Thanks :p
-
View User Profile
-
Send Message
Posted Nov 29, 2013But wouldnt it be the same way of setting up like in say GroupManager permissions where if you put an extra -, it removes it?
-
View User Profile
-
Send Message
Posted Nov 28, 2013@soaringeg127
The todo has it marked out and says "added in v1.2" and if you look in the description theres big red text that says "new in v1.2!"
I may add some things later that let you reverse the perm nodes, but as of now it is impossible and would take a complete rewrite of the plugin to support that.
-
View User Profile
-
Send Message
Posted Nov 28, 2013@BillyGalbreath
I see it in the To Do, but not in the description. Can you please clearly answer? Also, is there a way to make it so they no longer have a permission in the defined region, but they do have the permission outside the region?
-
View User Profile
-
Send Message
Posted Nov 17, 2013@ThrustLP
This question is answered in the description above, in detail.
-
View User Profile
-
Send Message
Posted Nov 17, 2013Hello! Is it possibile to remove the permissions when you leave the region? Example: You are in CitySpawn and into the region you can use /warp test if you leave CitySpawn you aren't allowed to use /warp test anymore
Please write back soon
Greats ThrustLP
-
View User Profile
-
Send Message
Posted Nov 15, 2013@Klosjaarrr
Never. There is no per-node data stored by my plugin. Only the flag itself, which is a StringFlag and the value is the permission node to set/unset. Theres literally no place to store something like that without adding another custom flag, which is beyond the scope of this plugin.
-
View User Profile
-
Send Message
Posted Nov 14, 2013Are there plans to make node-specific notifications? We want to set this up to make discoverable warps, with a message saying 'You have discovered <region>", but also use it for a premium-test room were players can test premium features themselves before buying them, with a message such as "You have now temporarily access to all premium features!".
-
View User Profile
-
Send Message
Posted Nov 9, 2013Uploaded v1.2 Jenkins Build #5
Fixed: none
Added:
-
View User Profile
-
Send Message
Posted Nov 8, 2013@Wonkee
I'll work on it some this weekend. I just released the biggest plugin I've ever made few moments ago, so its gonna take a few days to get approved and then some downloads and then finally bug reports for me to fix.
This has been in the back of my head for a week, and I think I know a way to make it happen. I'll try it out in the next few days and hopefully it works.
-
View User Profile
-
Send Message
Posted Nov 7, 2013Would it be possible to only let them have the permission node when they are in the specified region?
I am working on a server where players will start in a lobby and be able to warp to certain locations, but I do not want them to be able to warp when not in the lobby region.
EDIT: I just noticed the "to-do." What would it take to get your priority moved to this plugin?
-
View User Profile
-
Send Message
Posted Oct 31, 2013@JoaoEstrella
Currently the permission given is permanent. That was the original design and intention. However, you're not the first to request that they get the permission removed when they leave the region. The next update will contain a new exit flag for the purpose of removing a permission node on exit. I don't know when I'll finish that, though. It's a little harder to do exit flags, and my highest priority is on another plugin right now.
-
View User Profile
-
Send Message
Posted Oct 31, 2013Sorry, did not understand well. If the player enters the region "x" wins a certain permission, but what if he gets out of the region?
-
View User Profile
-
Send Message
Posted Oct 30, 2013Uploaded v1.1 Jenkins build #3
Fixed: none
Added:
-
View User Profile
-
Send Message
Posted Oct 29, 2013@BillyGalbreath
Could you also add {world}?
-
View User Profile
-
Send Message
Posted Oct 27, 2013@EvilDevil59NL
Sure thing. I'll add this in the next update.
-
View User Profile
-
Send Message
Posted Oct 27, 2013One question though, would it be posible to include, just like {user} and {node}, something like {region}, so that i could list the region name in the notify message?
-
View User Profile
-
Send Message
Posted Oct 26, 2013Great plugin like the rest of your plugins!