onSneak

public void onSneak(PlayerToggleSneakEvent event)

Starting to sneak opens the ability window for Bedrock players, who have no F key. The sneak itself always goes through, so dialogue, flight, dismounting and sneak enchantments keep it; a sneak another plugin cancelled (dialogue advances this way) opens nothing.