StormCommand monitors your worlds and fires a console command the instant a thunderstorm begins. Unlike event-based approaches, it uses rising-edge detection — the command triggers exactly once at storm start, not repeatedly while the storm is ongoing. Point it at any world, set any command, done.
/stormreload Reload the plugin configuration and restart the monitoring task
/stormdebug Show weather debug info for your current world (or global info from console)
Everything is in a single config.yml. No database, no extra files.
Code (YAML):
# LIST OF WORLDS WHERE THE PLUGIN IS ACTIVE # If the list is empty, the plugin applies to all worlds. enabled-worlds: - world
# - world_nether # - world_the_end
# COMMAND EXECUTED WHEN A STORM STARTS IN AN ENABLED WORLD # Available placeholders: # %world% -> world name command: "say [Weather] A thunderstorm is starting in world %world%"
# MINIMUM COOLDOWN BETWEEN TWO EXECUTIONS IN THE SAME WORLD (IN MINUTES) cooldown-minutes: 10
# DELAY BETWEEN EVENT DETECTION AND ACTUAL VERIFICATION (IN TICKS) # 20 ticks = ~1 second check-delay-ticks: 20