Skip to content

Conditional: Environment

ricochet1k edited this page Mar 18, 2012 · 2 revisions

Is true if the event's world environment matches the specified environment. An environment is a world type, according to the Environment enum in the relevant Bukkit source code.

Syntax

- 'if event.environment.{environment}': 'blah'

{environment} can be Normal, Nether, or The_End

Examples

Damage: #It hurts more when you're in hell.
    - 'if event.environment.NETHER': '+1'

Clone this wiki locally