Basalt's own (PowerNukkitX's PlayerChangeSkinEvent): a player changed skin in game.
Interface in @minecraft/server
Extended by PlayerChangeSkinBeforeEvent
Basalt’s own (PowerNukkitX’s PlayerChangeSkinEvent): a player changed skin in game.
import type { PlayerChangeSkinAfterEvent } from '@minecraft/server';Subscribe to it with world.afterEvents.playerChangeSkin.
Example
Section titled “Example”import { world, type PlayerChangeSkinAfterEvent } from '@minecraft/server';
world.afterEvents.playerChangeSkin.subscribe((event: PlayerChangeSkinAfterEvent) => { console.log('playerChangeSkin', event.player.name, event.isTrusted);});import { world } from '@minecraft/server';
world.afterEvents.playerChangeSkin.subscribe((event) => { console.log('playerChangeSkin', event.player.name, event.isTrusted);});Properties
Section titled “Properties”player
Section titled “player”read-only
readonly player: Player;Types
read-only
readonly skin: PlayerSkinInfo;Types
isTrusted
Section titled “isTrusted”read-only
readonly isTrusted: boolean;Whether others’ clients will draw it rather than a default skin.