DisguiseManager

public final class DisguiseManager

Single source of truth for active player disguises. Keyed by the disguised player's UUID. All disguise creation / removal must go through this class so lifecycle is consistent regardless of trigger (command, API, listener).

Functions

Link copied to clipboard
public static boolean disguise(Player player, String modelID)
Disguises player as the model with modelID.
Link copied to clipboard
public static Collection<PlayerDisguiseEntity> getAll()
Link copied to clipboard
@Nullable()
public static @Nullable() PlayerDisguiseEntity getDisguise(Player player)
Link copied to clipboard
public static boolean isDisguised(Player player)
Link copied to clipboard
public static void shutdown()
Plugin-disable / reload cleanup: remove every active disguise.
Link copied to clipboard
public static boolean undisguise(Player player)
Undisguises player if currently disguised.