onPropRightClick

public static boolean onPropRightClick(PropEntity prop, Player player)

Called by PropEntity's right-click callback. Fires ON_RIGHT_CLICK on the script and returns true if the script cancelled the default mount fallback.

Return

true if the script handled and cancelled the default behavior

Parameters

prop

the prop that was right-clicked

player

the player who right-clicked it