GroupPermsLite

Unsatisfied with a number of other permissions management plugins publicly available, I sought to create a lighter and more elegant plugin to handle group-based permissions. With a focus to making all of the commands understandable at a glance and providing helpful details when queried. You should be able to get on with permissions management simply through typing /help GroupPermsLite and reading the command descriptions.

If you are unfamiliar with Bukkit permissions, please see the Wiki Article and the Forum FAQ


Features


  • Simple and elegant
  • Easy to use and understand
  • Allows setting up an unlimited number of groups (names are case-insensitive)
  • Has a default group called "all" that applies to all players that have joined the server, nomatter what other groups they are in
  • Has a unique group for each player called "personal_[player name]" that allows individual permissions settings
  • Saved in YAML format, advanced users can read and manage on disk and reload while the server is running using a command
  • Simple and easy to use commands to add/remove players from groups and grant/revoke permissions from groups
  • Allows use of the wildcard (*) to match any value for a node in a permission string when granting permissions using a command
  • Allows adding negative permissions using the (-) operator to prevent a particular group from receiving the given permission from any other source

Ideas for future development


  • /hasPermission ([player]) [permission node] - For manually checking permissions of a player and for use in command blocks (Available from 4.4 onwards)
  • Tab auto-completion for registered permission nodes
  • Support for Vault for better compatibility with plugins such as the LWC group feature
  • A command to rename a player in order to support upcoming Mojang name changing feature

Commands


CommandPermissionDescription
/GroupCreate [group]group.adminCreates a group without adding a player or permission
/GroupAddPlayer [group] [player]group.adminAdds a player to the given group (creates the group if it doesn't already exist)
/GroupRemovePlayer [group] [player]group.adminRemoves a player from the given group
/GroupGrantPerms [group] [(-)permission-string]group.adminGrants the given permission(s) to the specified group (creates the group if it doesn't already exist)
/GroupRevokePerms [group] [permission-string]group.adminRevokes the given permission(s) from the specified group
/GroupListPerms [group] ([page number])group.adminLists all of the permissions for a given group
/GroupListPlayers [group]group.adminLists all players in a given group
/GroupListgroup.adminList all groups
/GroupDelete [group]group.adminDeletes a given group
/GroupReloadgroup.adminReloads config from disk
/RegisterPerm [permission node] [default(op/not-op/true/false)]group.adminManually register an unregistered permission node

Most commands have a "silent" feature that is activated by placing a "-s" (without quotes) at the end. This is intended to be used with command blocks and command scripting plugins to allow you to manage your permissions through these without generating lots of console spam. You will still get a response if the command fails however.


Add-ons


  • RankDisplayNames - Create ranks with chat prefixes that update automatically with permissions set through GroupPermsLite

Troubleshooting


It says the permission is not registered, what can I do?

Sometimes plugin developers will forget or simply not bother to register their permissions with Bukkit, but still use them in their code. Fortunately, the bukkit permissions.yml file can come to the rescue here. You should be able to find the permissions.yml file in the server directory. It is used by server owners to manually register additional permissions in bukkit. See http://wiki.bukkit.org/Permissions.yml for details about editing the Permissions YAML. It is usually used to group permissions together so that they can all be assigned at once (this is compatible with GroupPermsLite!), however there is also nothing stopping you from registering all of the unregistered permissions for a plugin manually.

For example, here is how to register all of the permissions for Essentials (the most notorious for not registering their permissions): http://dev.bukkit.org/paste/7208/. You can cut and paste these into your permissions.yml if you use essentials. Be aware that permissions with square brackets [ ] around a permission node mean that you have to change that to the specific type you want in order for it to work.

Coming in v0.4: Added support for unregistered permissions - You will be able to grant unregistered permissions to a group with a prompt for confirmation

This plugin uses Java 7

If you get the followed error on starting up the server with this plugin installed "Unsupported major.minor version 51.0". This means you are using an out of date version of Java. If you don't know how to upgrade, please contact your server hosting provider and ask them for help in upgrading to Java 7, or contact Oracle customer support. Mac OS X users require JDK 7 instead of JRE 7.


Donations


If you like my work, please consider donating using the Donate button in the top-right corner of the screen. As a freelance professional, I rely on donations and payments to support my work. Anything you can contribute to support my work will allow me to spend more time making plugins for Bukkit and supporting the plugins I publish. Thank you.

Everything I create here will be 100% free to download and use as you please, just keep the license attached and give me credit for the original work if you decide to redistribute.

Donate


Help


If you need help you can leave a comment below and I will get back to you as soon as I can. You can also join my IRC chatroom using the following link. Please note, I am not always at my keyboard! http://webchat.esper.net/?channels=XHawk87&prompt=1

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of XHawk87 XHawk87 Jul 02, 2015 at 12:47 UTC - 0 likes

    @Jayden2116: Go

    You will need to check the documentation for your plots plugin. It should contain a list of permissions for claiming, building and breaking etc.

    Assuming you have already created a group for these players, you can add these permissions to that group using the /GroupGrantPerms command.

    If these permissions are not registered you should double check they have been typed exactly correctly before proceeding. If necessary you can use the /RegisterPerm command to register this permission manually.

    If you have not yet created a group, bear in mind that you can use the 'all' group. These permissions apply to all players on the server including Ops. If you don't want that you can use the /GroupCreate or /GroupAddPlayer commands to create a group and add players to it.

    Best of luck with your server!

    Waiting for a viable alternative to Bukkit

  • Avatar of Jayden2116 Jayden2116 Jul 02, 2015 at 05:15 UTC - 0 likes

    I am having trouble allowing non ops in my server to claim, build & break in there plots
    Please explain how to allow it
    THANKS

  • Avatar of XHawk87 XHawk87 Jun 25, 2015 at 22:31 UTC - 0 likes

    @Prodigy_W2K19: Go

    Short answer, no.

    You can use the * wildcard to match a single term in a permission node, so with several commands you grant all registered permissions. E.g. *, *.*, *.*.*, *.*.*.* and so on. However that will only grant registered permissions. Not all plugins register their permissions, as sometimes it is impractical, and some authors don't know any better.

    Giving someone every possible permission isn't very practical, as a number of plugins have permissions that provide actions that you don't necessarily want. E.g. simplyvanish can make you start invisible on signing in, but you might not really want that.

    If you want someone to have access to all commands and features that an administrator should have, then using /op is the best way to achieve that. Plugins default to giving all permissions to ops, and only don't when the authors specifically exclude it (E.g. simplyvanish's auto-vanishing permission). Once you have op status, there are probably only a handful of extra permissions that you need.

  • Avatar of Prodigy_W2K19 Prodigy_W2K19 Jun 25, 2015 at 22:18 UTC - 0 likes

    Is there a way to give all permissions from all plugins at once?

  • Avatar of XHawk87 XHawk87 Mar 04, 2015 at 18:09 UTC - 0 likes

    @DiamondWolfGamer: Go

    The numbers just impose a priority for if a player belongs to multiple groups with a rank attached. The problem is that you haven't granted the permission to those groups.

    If you create a rank called "Alpha", and you have a group called "alpha_players", you would type: /GroupGrantPerms alpha_players ranks.membership.Alpha

  • Avatar of DiamondWolfGamer DiamondWolfGamer Mar 04, 2015 at 03:47 UTC - 0 likes

    I added the numbers and still NOPE (I feel like this plugin hates me) D: WHYYY!!!!

    So Far Only 1 rank

  • Avatar of XHawk87 XHawk87 Mar 03, 2015 at 04:09 UTC - 0 likes

    @DiamondWolfGamer: Go

    I see the problem. None of your groups have any "ranks.membership.[whatever the rank ID is for that rank]" permission. Check out the last section in the tutorial for help on doing this: http://dev.bukkit.org/bukkit-plugins/rankdisplaynames/pages/tutorial/

  • Avatar of DiamondWolfGamer DiamondWolfGamer Mar 03, 2015 at 03:35 UTC - 0 likes

    @XHawk87 link : http://pastebin.com/rnBSWwJA idk does essentials count cause if not NOTHING else should be wrong :P

  • Avatar of XHawk87 XHawk87 Mar 02, 2015 at 15:29 UTC - 0 likes

    @DiamondWolfGamer: Go

    If you have another plugin installed that can change player chat display names it could be interfering.

    However, if you send me a http://pastebin.com of your GroupPermsLite and RankDisplayNames config files I may be able to pinpoint a problem in your configuration.

  • Avatar of DiamondWolfGamer DiamondWolfGamer Mar 02, 2015 at 04:57 UTC - 0 likes

    So um I have both this plugin and the add on but still NO CHANGES in my ign @XHawk87 please help me D: I have now tryed for 2 days and still no work D:

Facts

Date created
Jan 15, 2013
Category
Last update
Sep 11, 2014
Development stage
Release
License
GNU General Public License version 3 (GPLv3)
Curse link
GroupPermsLite
Downloads
38,068
Recent files

Authors