Passive Listener Game Mode Change - TheComputerGeek2/MagicSpells GitHub Wiki

Source Code

PassiveSpell trigger: gamemodechange

Properties:

Property Value
Cancellable true
Has Entity Target false
Has Location Target false

Description:

The listener activates whenever a player's game mode changes.

String Format Options:

The argument is optional, but it may be a comma-separated list of game modes.

triggers:
    - gamemodechange (modes)

Config Format Options:

(Unsupported for now.)