HyperScript
Docs

← All of the Docs HyperPerms

Meta HyperPerms

expressionmeta <key> of <who>HyperPerms

A meta value of the player, their own or from one of their groups; unset if there is none

clear meta "home-limit" of arg.1
effectset meta <key> of <who> to <value>HyperPerms

Give the player a value of their own under that key

set meta "home-limit" of arg.1 to arg.2
effectclear meta <key> of <who>HyperPerms

Take the player's own value away again

clear meta "home-limit" of arg.1
Guide and examples
command /sethomelimit <target:player> <amount:integer>:
    permission: "ranks.give"
    trigger:
        set meta "home-limit" of arg.1 to arg.2
        send "&a%arg.1% may now have %arg.2% homes."

command /homelimit:
    players only: true
    trigger:
        set {_limit} to meta "home-limit" of player
        if {_limit} is not set:
            set {_limit} to 1
        send "&7You may have &f%{_limit}% &7home(s)."

command /resethomelimit <target:player>:
    permission: "ranks.give"
    trigger:
        clear meta "home-limit" of arg.1
SyntaxEffect
meta <key> of <who>A meta value of the player, their own or from one of their groups; unset if there is none
set meta <key> of <who> to <value>Give the player a value of their own under that key
clear meta <key> of <who>Take the player's own value away again
  • Meta is how LuckPerms keeps values per rank: /lp group vip meta set home-limit 5 gives every VIP a limit of 5, and a script reads it with meta "home-limit" of player.
  • The value comes back as text. Use parsed as number to count with it.