Privileges
Privileges
Privileges seeks to be a familiar face for Permissions, and uses the Permissions 2.x format of lists of nodes for users. It offers inheritance, multi-world permissions, and promotion tracks.
This plugin is designed to implement Super perms (Bukkit Permissions). It does not provide an extensible API for permissions handler hooking, except in the form of getGroup().
by krinsdeath
Pages
- Configuration / groups.yml
- Configuration / config.yml
- Example Setup
- Commands
- Jenkins / Github 5.1. Use of the plugin builds from Jenkins is unofficial, unsupported and unapproved by BukkitDev Staff!
Features
- Multi-world compatible permissions management, with a familiar interface.
- Easy-to-use, powerful, and accurate inheritance.
- Promotion ladders and tracks through group ranks.
- Anti-build with permissions nodes
privileges.buildandprivileges.interact. - Expanded anti-build permissions with
privileges.interact.[block id], to prevent interaction on a block-by-block basis. - Extremely powerful command system!
- Incredibly light-weight registration of players. Thousands of nodes can be applied in only a few millionths of a second.
- Plugin Metrics! Privileges reports the total number of groups and users registered in its config files to mcstats.org. This data is 100% anonymous and is only used for informational purposes. You can disable this in config.yml by changing
plugin.metrics: false
Commands
- /priv - Top level command. Does nothing.
- /priv check [player] [node] - Checks the specified node for the specified player. If player is omitted, checks your own nodes.
- /priv list [player] [page] - Lists the specified player's permissions nodes. If player is omitted, lists your own nodes. 7 nodes are listed per page.
- /priv reload - Saves Privileges' currently loaded configuration to disk and reloads all files.
- /priv save - Saves Privileges' currently loaded configuration to disk.
- /priv load - Unloads current configurations and loads from the disk - used to pick up external file changes.
- /priv backup [name] - Creates a configuration snapshot including users and groups, and saves it to a directory: privbackup/[name].
- /priv restore [name] - Restores the specified configuration snapshot.
- /priv version - Shows Privileges' current version and build numbers.
- /priv group [option] - Top level 'group' command
- * /priv group create [name] [rank] - Creates a group with the specified name and rank. If your current rank is equal to or lower than the rank you specify, the command will fail.
- * /priv group remove [name] [--safe] - Removes the specified group. If your rank is lower than the target group's rank, the command fails. If --safe is specified, the command will attempt to remove all references to the group from all users (and set them to your default group), and remove the group from all inheritance references as well.
- * /priv group set [player] [group] - Attempts to set the specified player's group to the specified group. If the target group's rank is equal to or higher than the command sender's rank, the command fails.
- * /priv group show [player] - Shows the sender the specified player's group.
- * /priv group list - Lists the available groups and their ranks.
- * /priv group perm - Top level 'group permission' command
- * * /priv group perm set [group] [node] [true|false] - Attempts to set the specified node to the specified value for the specified group. Fails if you don't have a higher rank setting than the target group.
- * * /priv group perm remove [group] [node] - Attempts to remove the node specified from the group. Fails if your rank is not higher than the target group.
- /priv user perm [option] - Top level 'user permission' command
- * /priv user perm remove [player] [node] - Removes the node specified from the target player.
- * /priv user perm set [player] [node] [true|false] - Sets the specified node to the value for the target player.
- * /priv user reset [player] - Resets the specified user to the default group and erases any individual permissions.
more commands will be added as I think of them
Permissions
- privileges.interact (defaults true) - Allows the player to interact with objects like buttons and switches
- privileges.build (defaults true) - Allows the player to break/place blocks
- Base commands
- * privileges.reload - /priv reload
- * privileges.save - /priv save
- * privileges.load - /priv load
- * privileges.backup - /priv backup [name]
- * privileges.restore - /priv restore [name]
- * privileges.version - /priv version
- * privileges.debug - /priv debug
- Administrative
- * privileges.promote - /promote [player]
- * privileges.demote - /demote [player]
- * privileges.check - /pc [player] [node]
- * privileges.list - /priv list [player] [page]
- * privileges.info - /priv info [player]
- Group base commands
- * privileges.group.create - /pgc [group] [rank]
- * privileges.group.remove - /pgr [group] [--safe]
- * privileges.group.set - /pgs [player] [group]
- * privileges.group.show - /pg show [player]
- * privileges.group.list - /pg list
- Group permissions commands
- * privileges.group.perm.set - /pgps [group] [node] [true|false]
- * privileges.group.perm.remove - /pgpr [group] [node]
- User permissions commands
- * privileges.user.perm.remove - /pupr [player] [node]
- * privileges.user.perm.set - /pups [player] [node] [true|false]
- * privileges.user.reset - /pur [player]
Special thanks
- gravypod - Small performance tweaks and optimizations. Thanks a bunch!
- Wolvereness - Massive improvement to node registration performance through templating. Keep on keepin' on!
-
View User Profile
-
Send Message
Posted Jan 26, 2013Your Jenkins page is 404ing. :(
-
View User Profile
-
Send Message
Posted Jan 19, 2013Hi.
EDIT: Thanks krinsdeath :) .. build #153 works great. For anyone else reading this, my problem below was using build #148 - #152 .. so either stick with #147 or use #153.
I let some groups do the essentials command /fly .. but i also prevent this in my factions world. but when a player with the fly permissions is in the factions world. leaves and rejoins the players are able to do the command.
How can i prevent this? it seems as permissions are not set fast enough when a player logs in?
appreciate any help given :)
http://pastebin.com/mwKE9gzu <<< group setting for donator
Cheers sirmyllox
-
View User Profile
-
Send Message
Posted Jan 18, 2013I noticed a strange error on every server restart. Its something with essentials and privileges. In this error is written that "invalid default group is defined in config.yml" but both plugins are working and group in config.yml matches to group in groups.yml. Sorry for my english. http://dev.bukkit.org/paste/6934/
-
View User Profile
-
Send Message
Posted Jan 15, 2013Is there a Maven repo? http://files.krinsoft.net:8085, which is what's listed in the POM, does not resolve.
EDIT: I figured it out. The pom lists "http://files.krinsoft.net:8085/nexus/content/groups/public" as the repo, but the actual address is "http://files.krinsoft.net:8085/nexus/content/repositories/ks-releases/"
-
View User Profile
-
Send Message
Posted Jan 9, 2013@GODDAMNBBQ
I suggest Krinsdeaths ChatSuite. Works fantastic.
-
View User Profile
-
Send Message
Posted Jan 9, 2013@ItsTrigger
Yeah, the server currently uses this but then we wish to add Factions, but then Factions isn't compatible with it and removes the prefix, making it so nobody knows their rank.
-
View User Profile
-
Send Message
Posted Jan 8, 2013@GODDAMNBBQ
Plugins like Simple Prefix will do this for you, it's not built into Privileges.
-
View User Profile
-
Send Message
Posted Jan 8, 2013Hey, I have a quick question. Is there any way to set prefixes and colours onto specific groups? Thanks
-
View User Profile
-
Send Message
Posted Jan 8, 2013Just to let you know, I have been using Privileges with the latest version of bukkit without any problems. Great Job.
-
View User Profile
-
Send Message
Posted Jan 1, 2013Is there any way for promotions to be blocked if the user is in a group that does not feature a rank?
I have a few groups; Guest, Member, VIP, Staff, Admin and I have a script on my forum that lets players upgrade from the Guest group to the Member group so they can build.
Only Guest and Member have a ranking set (1 and 2 respectively) so simply using the promote command in the script works.
However, testing it with my own name, from the Admin group, demotes me to Member.
I can't have all groups have a rank number, as that would allow people to re-do the script to put them to Admin rank, which by not giving VIP -> Admin a rank number is solved and working (in the members group, I try the page again and it fails as expected).
-
View User Profile
-
Send Message
Posted Dec 31, 2012@krinsdeath
Ok thanks for elaborating that. My community has been using Pex for the longest time and we wanted to make a switch over to privileges. The issue with button promote and vault only occurs when using privileges. With pex it works fine. Good job on the plugin though! I hope to see some more documentation on these lesser known permissions eg: privileges.self.edit group.owner
-
View User Profile
-
Send Message
Posted Dec 31, 2012jach11: privileges.restricted sets two children nodes: privileges.build (false) and privileges.interact (false). It does nothing on its own.
That error is in Vault/Button Promote. Privileges isn't even in the stack trace.
-
View User Profile
-
Send Message
Posted Dec 31, 2012I seem to be getting an error when using Privileges Build #148 with ButtonPromote Build #11 I was also wondering if you could go more in depth of the permissions. Including what "privileges.restricted" means. I understand that it must restrict permissions in general but it is not documented anywhere.
-
View User Profile
-
Send Message
Posted Dec 30, 2012@krinsdeath
Works great! Thank you
-
View User Profile
-
Send Message
Posted Dec 30, 2012gepardo43: This is now done and in my latest dev build, however I'm not going to update it here until I'm certain that the plugin is still working as intended. Try running it and let me know if you encounter any issues.
-
View User Profile
-
Send Message
Posted Dec 29, 2012@krinsdeath
I have a feature request. Make privileges to check for permissions until player join a server. Its needed for vip slot reservation plugins. I tested essentials perm node essentials.joinfullserver which works good on PEX but not on Privileges :(. Thank you very much
-
View User Profile
-
Send Message
Posted Dec 28, 2012Privileges should not have broken during the update to 1.4.6, however you can get my dev builds (which are working properly and built against 1.4.6!) on my jenkins. Please note that these builds are not approved by the Bukkit Dev team, but they are perfectly safe for your server. :)
-
View User Profile
-
Send Message
Posted Dec 28, 2012maybe someone can help me here, when iI updated to 1.4.6 many plugins ceased to work due to this security check in the new bukkit. I noticed people couldn't use the commands that were working because privileges hasn't updated, is this the case, is there an updated copy out there that works with 4.6? is been iI while since I've looked around because of this crazy flu I had, I'm still iI bit hazy so any help would be great
-
View User Profile
-
Send Message
Posted Dec 27, 2012putting them in the file works fine. the commands however do not.
-
View User Profile
-
Send Message
Posted Dec 27, 2012@HDfunctions
Why don't you just OP people instead...?