HyperScript
Docs

← All of the Docs HyperPerms

Making groups, prefixes and suffixes HyperPerms

effectcreate group <name>HyperPerms

Make a LuckPerms group. Small letters, digits, _, - and . only; a group that is there already is left as it is

create group arg.1
effectdelete group <name>HyperPerms

Delete one, for good. default is never deleted

delete group arg.1
effectset prefix of <who> to <text>HyperPerms

Give a player a prefix of their own, in front of whatever their groups give. set suffix of <who> to <text> likewise

set prefix of player to "&d[%arg.1%&d] "
effectset prefix of group <name> to <text>HyperPerms

The same for a group, and set suffix of group <name> to <text>

set prefix of group arg.1 to "&7[%arg.2%&7] "
effectclear prefix of <who>HyperPerms

Take away the prefix a player has of their own; the one of their group shows again. clear suffix of, and of group <name>, likewise

clear prefix of player
expressiongroup exists <name>HyperPerms

True if LuckPerms has a group of that name

if group exists arg.1:
    delete group arg.1
expressiongrant group <name> permission <node>HyperPerms

Give a group a permission, for everybody in it. revoke permission <node> from group <name> takes it back

grant group arg.1 permission "essentials.fly"
effectset weight of group <name> to <n>HyperPerms

Which group counts for more when a player is in several: the higher number wins

set weight of group arg.1 to 50
expressionpermissions of group <name>HyperPerms

A list of every permission a group has, its own and those of the groups it inherits from

send "&7%arg.1% has %size of permissions of group arg.1% permissions."
expressionpermissions of <who>HyperPerms

A list of every permission a player who is online has, their own and those of their groups

set {_nodes} to permissions of player
Guide and examples
command /makerank <name> <prefix>:
    permission: "ranks.admin"
    trigger:
        create group arg.1
        wait 1 second
        set prefix of group arg.1 to "&7[%arg.2%&7] "
        send "&aThere is now a group called %arg.1%."

command /dropgroup <name>:
    permission: "ranks.admin"
    trigger:
        if group exists arg.1:
            delete group arg.1
        else:
            send "&cThere is no group called %arg.1%."

command /groupfly <name>:
    permission: "ranks.admin"
    trigger:
        grant group arg.1 permission "essentials.fly"
        set weight of group arg.1 to 50
        send "&7%arg.1% has %size of permissions of group arg.1% permissions."

command /groupnofly <name>:
    permission: "ranks.admin"
    trigger:
        revoke permission "essentials.fly" from group arg.1

command /title <text>:
    permission: "title.use"
    trigger:
        set prefix of player to "&d[%arg.1%&d] "
        set suffix of player to " &8*"

command /notitle:
    trigger:
        clear prefix of player
        clear suffix of player

command /myperms:
    trigger:
        set {_nodes} to permissions of player
        send "&7You have %size of {_nodes}% permissions."
        if {_nodes} contains "essentials.fly":
            send "&aFlying is one of them."
SyntaxEffect
create group <name>Make a LuckPerms group. Small letters, digits, _, - and . only; a group that is there already is left as it is
delete group <name>Delete one, for good. default is never deleted
set prefix of <who> to <text>Give a player a prefix of their own, in front of whatever their groups give. set suffix of <who> to <text> likewise
set prefix of group <name> to <text>The same for a group, and set suffix of group <name> to <text>
clear prefix of <who>Take away the prefix a player has of their own; the one of their group shows again. clear suffix of, and of group <name>, likewise
group exists <name>True if LuckPerms has a group of that name
grant group <name> permission <node>Give a group a permission, for everybody in it. revoke permission <node> from group <name> takes it back
set weight of group <name> to <n>Which group counts for more when a player is in several: the higher number wins
permissions of group <name>A list of every permission a group has, its own and those of the groups it inherits from
permissions of <who>A list of every permission a player who is online has, their own and those of their groups
  • A group is made in a moment, not at once: give LuckPerms a tick before using it, as the example does with wait.
  • A prefix set here replaces the one the player or the group had of its own, and is given a priority above the ones that come from elsewhere, so that it is the one that shows.
  • clear prefix of team ... and set prefix of team ... are HyperScript's own, for scoreboard teams, and are left to it.