summaryrefslogtreecommitdiffstats
path: root/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectWeatherListener.java
diff options
context:
space:
mode:
authorsnowleo <snowleo@e251c2fe-e539-e718-e476-b85c1f46cddb>2011-05-22 20:06:17 +0000
committersnowleo <snowleo@e251c2fe-e539-e718-e476-b85c1f46cddb>2011-05-22 20:06:17 +0000
commit38ba163a36e649c1ed850ce3da62029228613492 (patch)
treef1380927bc2e303453bfe4b31d323f5aaa2cf2b7 /EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectWeatherListener.java
parent629586dc0bbba98c97a17cd2c67a6dd34399f109 (diff)
downloadEssentials-38ba163a36e649c1ed850ce3da62029228613492.tar
Essentials-38ba163a36e649c1ed850ce3da62029228613492.tar.gz
Essentials-38ba163a36e649c1ed850ce3da62029228613492.tar.lz
Essentials-38ba163a36e649c1ed850ce3da62029228613492.tar.xz
Essentials-38ba163a36e649c1ed850ce3da62029228613492.zip
cleanup
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1520 e251c2fe-e539-e718-e476-b85c1f46cddb
Diffstat (limited to 'EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectWeatherListener.java')
-rw-r--r--EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectWeatherListener.java21
1 files changed, 15 insertions, 6 deletions
diff --git a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectWeatherListener.java b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectWeatherListener.java
index d24e289fb..901d3d8c7 100644
--- a/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectWeatherListener.java
+++ b/EssentialsProtect/src/com/earth2me/essentials/protect/EssentialsProtectWeatherListener.java
@@ -18,8 +18,11 @@ public class EssentialsProtectWeatherListener extends WeatherListener
@Override
public void onWeatherChange(WeatherChangeEvent event)
{
- if (event.isCancelled()) return;
- if(EssentialsProtect.playerSettings.get("protect.disable.weather.storm") && event.toWeatherState())
+ if (event.isCancelled())
+ {
+ return;
+ }
+ if (EssentialsProtect.playerSettings.get("protect.disable.weather.storm") && event.toWeatherState())
{
event.setCancelled(true);
return;
@@ -30,8 +33,11 @@ public class EssentialsProtectWeatherListener extends WeatherListener
@Override
public void onLightningStrike(LightningStrikeEvent event)
{
- if (event.isCancelled()) return;
- if(EssentialsProtect.playerSettings.get("protect.disable.weather.lightning"))
+ if (event.isCancelled())
+ {
+ return;
+ }
+ if (EssentialsProtect.playerSettings.get("protect.disable.weather.lightning"))
{
event.setCancelled(true);
return;
@@ -41,8 +47,11 @@ public class EssentialsProtectWeatherListener extends WeatherListener
@Override
public void onThunderChange(ThunderChangeEvent event)
{
- if (event.isCancelled()) return;
- if(EssentialsProtect.playerSettings.get("protect.disable.weather.thunder") && event.toThunderState())
+ if (event.isCancelled())
+ {
+ return;
+ }
+ if (EssentialsProtect.playerSettings.get("protect.disable.weather.thunder") && event.toThunderState())
{
event.setCancelled(true);
return;