General - Fetch Skin (Effect) — PacketEventsSK

Addon: PacketEventsSK · Category: Effect · Since: 1.0.0

Syntax

fetch skin (from|of) player (named|with name) %string% and store (it|the result) in %-~objects%

Description

Used to fetch a player skin. **This is processed on an async thread and thus will pause your code until it's been loaded.**

Examples

command changeMySkinForMe <text>:
    trigger:
        fetch skin of player named arg-1 and store it in {_skin}
        if {_skin} isn't set:
            send "Couldn't find a skin!"
            stop

        set displayed skin of player to {_skin} for player

View source