Luckperms: [Question] Could explain more about set xxx false and unset?

Created on 3 Aug 2017  路  2Comments  路  Source: lucko/LuckPerms

Hello, after I read the wiki, I am still a little confused about the difference between "set xxx false" and "unset xxx".
For example, could you explain more details about the difference between commands "/luckperms group admin permission set minecraft.command.ban false" and "/luckperms group admin permission unset minecraft.command.ban"?

question

Most helpful comment

I'm not the dev, but here's my take: 'set false' explicitly denies that permission, while 'unset' is agnostic toward that permission. This is an important distinction, consider a user's inherited permissions:

  • User Alice belongs to group Moderator
  • Group Moderator has permission X
  • User Alice has permission X set to false, so that she still belongs to group Moderator, minus one permission

If Alice instead had that permission 'unset', she would by default inherit permission X, which we don't want her to have. So 'unset' is kind of like 'pass-through' any inherited permissions, while 'set true/false' explicitly sets that permission in that context.

All 2 comments

I'm not the dev, but here's my take: 'set false' explicitly denies that permission, while 'unset' is agnostic toward that permission. This is an important distinction, consider a user's inherited permissions:

  • User Alice belongs to group Moderator
  • Group Moderator has permission X
  • User Alice has permission X set to false, so that she still belongs to group Moderator, minus one permission

If Alice instead had that permission 'unset', she would by default inherit permission X, which we don't want her to have. So 'unset' is kind of like 'pass-through' any inherited permissions, while 'set true/false' explicitly sets that permission in that context.

@etskinner Thank you very much! 馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

netherstar picture netherstar  路  4Comments

PhanaticD picture PhanaticD  路  3Comments

XDqrkneZ picture XDqrkneZ  路  3Comments

Zekrin picture Zekrin  路  3Comments

SpaicyGaming picture SpaicyGaming  路  3Comments