player_swaps_hands

View on GitHub

Syntax

__on_player_swaps_hands(player) -> ...

Triggered when a player sends a command to swap their offhand item. Executed before the effect is applied on the server.

This event can be cancelled by returning 'cancel', which prevents the hands from being swapped.