-
dRegions:
type: world
debug: false
events:
##################################################
#
# World Events
#
#
on block burns:
- define world '<c.location.world.name.to_lowercase>'
- define readPath 'spread.fire'
- inject instantly s@dRegions p:event_PreProc_Config_Boolean
on block spreads:
- define world '<c.location.world.name.to_lowercase>'
- define readPath 'spread.<c.material.bukkit_enum.to_lowercase||null>'
- inject instantly s@dRegions p:event_PreProc_Config_Boolean
-
- event_PreProc_Config_Boolean:
+
+ event_PreProc_Config_Boolean:
# Reusable code block injected from events.
# This pre-processor checks BOOLEAN type events handled in the global and world config files.
- foreach '<el@val[global|%world%].as_list>' {
- define settingValue '<yaml[dRegions_%value%_config].read[config.%readPath%]||true>'
- if !<def[settingValue]||true> {
- determine CANCELLED
}
}