diff options
author | snowleo <schneeleo@gmail.com> | 2012-01-20 05:20:37 +0100 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2012-01-20 05:20:37 +0100 |
commit | 3315019203f6ac217bcc8fc751e5067fa3b147c0 (patch) | |
tree | 28e2695fb1eb37eff4ec76549a64ec819019ca10 /EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectWeatherListener.java | |
parent | 6ff7e6fd254a105364bcf30a054748adcf6005a1 (diff) | |
download | Essentials-3315019203f6ac217bcc8fc751e5067fa3b147c0.tar Essentials-3315019203f6ac217bcc8fc751e5067fa3b147c0.tar.gz Essentials-3315019203f6ac217bcc8fc751e5067fa3b147c0.tar.lz Essentials-3315019203f6ac217bcc8fc751e5067fa3b147c0.tar.xz Essentials-3315019203f6ac217bcc8fc751e5067fa3b147c0.zip |
Update for new CraftBukkit Event Code
EssentialsSpawn can't be updated yet, because the new event system lacks dynamic priorities.
Diffstat (limited to 'EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectWeatherListener.java')
-rw-r--r-- | EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectWeatherListener.java | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectWeatherListener.java b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectWeatherListener.java index e81efc72b..1b8dd19ff 100644 --- a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectWeatherListener.java +++ b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectWeatherListener.java @@ -1,12 +1,14 @@ package com.earth2me.essentials.protect; +import org.bukkit.event.EventHandler; +import org.bukkit.event.EventPriority; +import org.bukkit.event.Listener; import org.bukkit.event.weather.LightningStrikeEvent; import org.bukkit.event.weather.ThunderChangeEvent; import org.bukkit.event.weather.WeatherChangeEvent; -import org.bukkit.event.weather.WeatherListener; -public class EssentialsProtectWeatherListener extends WeatherListener +public class EssentialsProtectWeatherListener implements Listener { private final transient IProtect prot; @@ -15,7 +17,7 @@ public class EssentialsProtectWeatherListener extends WeatherListener this.prot = prot; } - @Override + @EventHandler(priority = EventPriority.HIGHEST) public void onWeatherChange(final WeatherChangeEvent event) { if (!event.isCancelled() @@ -27,7 +29,7 @@ public class EssentialsProtectWeatherListener extends WeatherListener } - @Override + @EventHandler(priority = EventPriority.HIGHEST) public void onLightningStrike(final LightningStrikeEvent event) { if (!event.isCancelled() @@ -37,7 +39,7 @@ public class EssentialsProtectWeatherListener extends WeatherListener } } - @Override + @EventHandler(priority = EventPriority.HIGHEST) public void onThunderChange(final ThunderChangeEvent event) { if (!event.isCancelled() |