expression
meta <key> of <who>HyperPermsA 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← All of the Docs HyperPerms
meta <key> of <who>HyperPermsA meta value of the player, their own or from one of their groups; unset if there is none
clear meta "home-limit" of arg.1set meta <key> of <who> to <value>HyperPermsGive the player a value of their own under that key
set meta "home-limit" of arg.1 to arg.2clear meta <key> of <who>HyperPermsTake the player's own value away again
clear meta "home-limit" of arg.1command /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
| Syntax | Effect |
|---|---|
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 |
/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.parsed as number to count with it.