summaryrefslogtreecommitdiffstats
path: root/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectWeatherListener.java
diff options
context:
space:
mode:
authorementalo <me@ementalo.com>2015-04-11 21:47:56 +0100
committerementalo <me@ementalo.com>2015-04-11 21:47:56 +0100
commit9e6c686c297eb233dfa19872f2f42bbd2a8f421f (patch)
treebc1dfa4e3ec7ca5ce8c459baaaebe4bd2b09ec5e /EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectWeatherListener.java
parentce8313bd688ecad3ed98decaf5ef9029fca8f100 (diff)
downloadEssentials-9e6c686c297eb233dfa19872f2f42bbd2a8f421f.tar
Essentials-9e6c686c297eb233dfa19872f2f42bbd2a8f421f.tar.gz
Essentials-9e6c686c297eb233dfa19872f2f42bbd2a8f421f.tar.lz
Essentials-9e6c686c297eb233dfa19872f2f42bbd2a8f421f.tar.xz
Essentials-9e6c686c297eb233dfa19872f2f42bbd2a8f421f.zip
Change namespace from com.earth2me to org.mcess - net.ess3.api changes still required
Diffstat (limited to 'EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectWeatherListener.java')
-rw-r--r--EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectWeatherListener.java48
1 files changed, 0 insertions, 48 deletions
diff --git a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectWeatherListener.java b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectWeatherListener.java
deleted file mode 100644
index ed621a675..000000000
--- a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectWeatherListener.java
+++ /dev/null
@@ -1,48 +0,0 @@
-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;
-
-
-public class EssentialsProtectWeatherListener implements Listener
-{
- private final IProtect prot;
-
- public EssentialsProtectWeatherListener(final IProtect prot)
- {
- this.prot = prot;
- }
-
- @EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
- public void onWeatherChange(final WeatherChangeEvent event)
- {
- if (prot.getSettingBool(ProtectConfig.disable_weather_storm)
- && event.toWeatherState())
- {
- event.setCancelled(true);
- }
- }
-
- @EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
- public void onLightningStrike(final LightningStrikeEvent event)
- {
- if (prot.getSettingBool(ProtectConfig.disable_weather_lightning))
- {
- event.setCancelled(true);
- }
- }
-
- @EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
- public void onThunderChange(final ThunderChangeEvent event)
- {
- if (prot.getSettingBool(ProtectConfig.disable_weather_thunder)
- && event.toThunderState())
- {
- event.setCancelled(true);
- }
- }
-}