Suffix (Expression) — skript-luckperms
Addon: skript-luckperms · Category: Expression · Since: 1.0
Syntax
[the] [luckperm[s]] suffix[es] of group %luckpermsgroup%Description
Returns the primary suffix of a user/group. If `suffixes` is used it will return a sorted list of all suffixes of the user/group. Use `ExprChatMetaPriority` to get priority of a suffix.
Examples
function get(p: offlineplayer):
set {_lp} to luckperms user from {_p}
set {_suffix} to formatted luckperms suffix of {_lp}
set {_suffixes::*} to luckperms suffixes of {_lp}
if {_p} is online:
send "Your suffix: %{_suffix}%" to {_p}
send "You have %size of {_suffixes::*}% suffixes!" to {_p}
loop {_suffixes::*}:
set {_suffix} to formatted loop-value
send "Priority: %suffix priority of loop-value% Suffix: %{_suffix}%" to {_p}
function get(group: string):
set {_prefix} to formatted luckperms prefix of {_group}
set {_prefixes::*} to luckperms prefixes of {_group}
broadcast "%{_group}%'s primary prefix: %{_prefix}%"
broadcast "Amount of all prefixes: %size of {_prefixes::*}%x"
broadcast "All:"
loop {_prefixes::*}:
set {_prefix} to formatted loop-value
broadcast "Priority: %prefix priority of loop-value% Prefix: %{_prefix}%"