Previously, when you used a gani-script you had to use if (playerenters) because of onPlayerEnters replacing parameters. You can now use onPlayerEnters and get the desired effects.
This is only for gani-scripts, so the sample you posted wouldn't do anything.