summaryrefslogtreecommitdiffstats
path: root/EssentialsProtect/src/com
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
commit1c5d9b1db02cba3a131153630144994bb28c6f72 (patch)
tree62e9885734bc27adfc1a7644ed648769f5810159 /EssentialsProtect/src/com
parent7ed87d696ac257b9a09b32658f78dd1265ab0105 (diff)
downloadEssentials-1c5d9b1db02cba3a131153630144994bb28c6f72.tar
Essentials-1c5d9b1db02cba3a131153630144994bb28c6f72.tar.gz
Essentials-1c5d9b1db02cba3a131153630144994bb28c6f72.tar.lz
Essentials-1c5d9b1db02cba3a131153630144994bb28c6f72.tar.xz
Essentials-1c5d9b1db02cba3a131153630144994bb28c6f72.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')
-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;