DismountCommand.DismountOtherCommand
Package: com.hypixel.hytale.builtin.mounts.commands
private static class DismountOtherCommand extends CommandBaseUsage variant of DismountCommand that dismounts a specific player by name. Takes a required player argument of type ArgTypes.PLAYER_REF.
Constructor
Section titled “Constructor”DismountOtherCommand()Creates the variant with description key "server.commands.dismount.other.desc".
Behavior
Section titled “Behavior”@Overrideprotected void executeSync(@Nonnull CommandContext context)Resolves the target player reference, validates it is in a world, then executes on the world thread:
- Reads the target’s
Playercomponent. - Removes the MountedComponent from the target entity.
- Sends a
"server.commands.dismount.dismountOther"message with the target username.
If the player reference is invalid or the player is not in a world, sends an error message.
Related Types
Section titled “Related Types”- DismountCommand — enclosing command
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.