#How do permissions in mods work?

10 messages · Page 1 of 1 (latest)

blissful bough
#

Hey!

I was wondering, how can I add permissions to my mod so other people can easily integrate them with any permission mod?

For example, I'd like to have a configuration where mymod.command.thisisthecommand is the permission for a specific command.

nimble socket
#

For commands, it's recommended to use a fallback level of 2 for regular OP commands and 4 for administrative commands

blissful bough
#

Is this what mods like WorldEdit use?

nimble socket
#

It's the accepted standard

#

Unsure what WorldEdit specifically uses, but likely this

blissful bough
#

I am trying to understand what's happening underneath, and I really don't get how this library 'creates' permissions name and how tools like LuckPerms can set permissions for it.

crystal vapor
#

you'd create / generate the permission keys yourself; luckperms will hook into it if loaded

blissful bough
#

hook on what?

crystal vapor
#

fabric-permissions-api