Skip to content

MountCheckCommand

Package: com.hypixel.hytale.builtin.mounts.commands

public class MountCheckCommand extends AbstractTargetPlayerCommand

The /mount check subcommand. Reports the mount status of the target player.

public MountCheckCommand()

Creates the command with name "check" and description key "server.commands.check.desc".

@Override
protected void execute(
@Nonnull CommandContext context,
@Nullable Ref<EntityStore> sourceRef,
@Nonnull Ref<EntityStore> ref,
@Nonnull PlayerRef playerRef,
@Nonnull World world,
@Nonnull Store<EntityStore> store
)

Reads the target player’s MountedComponent and sends one of four messages:

ConditionMessage Key
No MountedComponentserver.commands.check.noComponent
Mounted to entityserver.commands.check.mountedToEntity
Mounted to blockserver.commands.check.mountedToBlock
Neither entity nor blockserver.commands.check.unknownStatus
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.