Promote User (Effect) — skript-luckperms

Addon: skript-luckperms · Category: Effect · Since: 1.0

Syntax

promote user [%-luckpermsuser%] (along|on) track %luckpermstrack%

Description

Promotes a user along a track. If the user is not on the track or is at end of track, nothing will happen.

Examples

function example(p: offlineplayer,track: string):
    set {_lp} to luckperms user from {_p}
    edit user {_lp}:
        promote user {_lp} along track {_track}
    if {_p} is online:
        send "You were promoted on track %{_track}%!" to {_p}

View source