Denizen Script Commands


Commands are always written with a '-' before them, and are the core component of any script, the primary way to cause things to happen.
Learn about how commands work in The Beginner's Guide.


Showing 1 out of 184 commands...
NamePermission
Syntaxpermission [add/remove] [permission] (group:<name>) (<world>)
Short DescriptionGives or takes a permission node to/from the player or group.
Full DescriptionAdds or removes a permission node from a player or group.
Accepts a world for world-based permissions plugins.
By default changes the attached player's permissions.
Accepts the 'group:<name>' argument to change a group's permission nodes rather than a player's.
Note: This requires a permissions plugin and Vault.
Related Tags<PlayerTag.has_permission[permission.node]> Returns whether the player has the specified node. (...)
<PlayerTag.has_permission[permission.node].global> Returns whether the player has the specified node, regardless of world. (...)
<PlayerTag.has_permission[permission.node].world[<world>]> Returns whether the player has the specified node in regards to the (...)
<server.has_permissions> Returns whether the server has a known permission plugin loaded. (...)
Usage Example
# Use to give the player a permissions node.
- permission add bukkit.version
Usage Example
# Use to remove a permissions node from a player.
- permission remove bukkit.version
Usage Example
# Use to give the group 'Members' a permission node.
- permission add bukkit.version group:Members
Usage Example
# Use to remove a permissions node from the group 'Members' in the Creative world.
- permission remove bukkit.version group:Members Creative
Groupplayer
RequiresVault
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/scripts/commands/player/PermissionCommand.java#L24