summaryrefslogtreecommitdiffstats
path: root/EssentialsProtect/src/com
diff options
context:
space:
mode:
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;