LuckPerms group permissions
You can set permissions for either a group or an individual player.
Permissions determine which commands a player has access to. There are generally separate permissions for each command, giving you a lot of control over what commands they can access.
Note: it's usually better to add permissions to groups rather than players, but if you only want to give a permission to a single person, you can just use player permissions
Note: to set a permission for all players, you should set permissions for the
default
group.
Giving a permission to a group
To give a permission to a group, use this command:
/lp group <group> permission set <permission> true
You don't actually need to add the true
at the end, so this would also be
fine:
/lp group <group> permission set <permission>
For example, we could give permission to the /tp
command to a group called
Moderator
like this:
/lp group Moderator permission set minecraft.command.teleport true
Removing a permission from a group
To remove a permission from a group, use this command:
/lp group <group> permission unset <permission>
Using our example above, we can remove the teleport permission from
Moderator
like this:
/lp group Moderator permission unset minecraft.command.teleport
Explicit false
permissions
Some commands are available to everyone by default, even if they are not an operator.
For example, the /plugins
command is available to everyone by default on
Bukkit servers, but you might not want this.
To explicitly block a command, use:
/lp group <group> permission set <permission> false
For example, to block Moderator
from using /plugins
, you can use:
/lp group Moderator permission set minecraft.command.plugins false
Getting information about permissions
If you want to know what permissions a group has, use this command:
/lp group <group> info
For example, to check all of Moderator
's permissions, type:
/lp group Moderator info
Setting permissions temporarily
You can set a permission for a group, but only for a certain amount of time, using this syntax:
/lp group <group> permission settemp <permission> <true/false> <duration>
For example, to give Moderator
permission to use the /ban
command but
only for two days:
/lp group Moderator permission settemp minecraft.command.ban true 2d
Or, to prevent them from using the /tell
command for 5 minutes:
/lp group Moderator permission settemp minecraft.command.tell false 5m
Unsetting permissions temporarily
You can temporarily remove a permission for a group (for only a certain amount of time) using this syntax:
/lp group <group> permission unsettemp <permission> <duration>
For example, to remove Moderator
s' permission to use the /ban
command but
only for two hours:
/lp group Moderator permission unsettemp minecraft.command.ban 2h