HyperScript
Docs

← All of the Docs HyperPerms

Group events HyperPerms

eventon group change:HyperPerms

Runs when the groups of any player change, however it happened

on group change:
    log "%{_player}% is now in %{_group}% (%{_groups}%)"
    if {_group} is "vip":
        send "&6Thank you for supporting the server!" to {_player}

What this event gives a script

In the blockWhat it is
{_player}The player's name
{_group}Their primary group after the change
{_groups}The list of all their groups
Guide and examples
on group change:
    log "%{_player}% is now in %{_group}% (%{_groups}%)"
    if {_group} is "vip":
        send "&6Thank you for supporting the server!" to {_player}
SyntaxEffect
on group change:Runs when the groups of any player change, however it happened
  • Inside the block, {_player} is the player's name, {_group} their primary group after the change, and {_groups} the list of all their groups.
  • It runs for changes made by scripts, by /lp commands and by a time limit running out alike.
  • The block runs with no player, like a console command; use {_player} to say who it is about.