HyperScript
Docs

← All of the Docs HyperPerms

Groups HyperPerms

expressiongroup of <who>HyperPerms

The player's primary group, e.g. default or vip

set group of arg.1 to "default"
expressiongroups of <who>HyperPerms

A list of every group the player is in

set {_groups} to groups of track "staff"
expressionprefix of <who>HyperPerms

The chat prefix LuckPerms gives the player; unset if none

clear prefix of player
expressionsuffix of <who>HyperPerms

The chat suffix; unset if none

clear suffix of player
Guide and examples
on player join:
    if group of player is "default":
        send "&7Type &f/rankup &7when you have 1000 coins."
    if groups of player contains "vip":
        send "&6Welcome back, VIP!"

on player chat:
    set {_before} to prefix of player
    set {_after} to suffix of player
    set chat format to "%{_before}%&f%player.name%%{_after}%&7: &f%event.message%"
SyntaxResult
group of <who>The player's primary group, e.g. default or vip
groups of <who>A list of every group the player is in
prefix of <who>The chat prefix LuckPerms gives the player; unset if none
suffix of <who>The chat suffix; unset if none
  • These are values like any other: if group of player is "vip":, if groups of arg.1 contains "staff":, send "Rank: " + group of player.
  • They are read for players who are online. For someone offline they are unset.
  • prefix of team "red" is still HyperScript's own, about scoreboard teams.