1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-14 18:44:48 +02:00
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1520 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
snowleo
2011-05-22 20:06:17 +00:00
parent 629586dc0b
commit 38ba163a36

View File

@@ -18,7 +18,10 @@ public class EssentialsProtectWeatherListener extends WeatherListener
@Override
public void onWeatherChange(WeatherChangeEvent event)
{
if (event.isCancelled()) return;
if (event.isCancelled())
{
return;
}
if (EssentialsProtect.playerSettings.get("protect.disable.weather.storm") && event.toWeatherState())
{
event.setCancelled(true);
@@ -30,7 +33,10 @@ public class EssentialsProtectWeatherListener extends WeatherListener
@Override
public void onLightningStrike(LightningStrikeEvent event)
{
if (event.isCancelled()) return;
if (event.isCancelled())
{
return;
}
if (EssentialsProtect.playerSettings.get("protect.disable.weather.lightning"))
{
event.setCancelled(true);
@@ -41,7 +47,10 @@ public class EssentialsProtectWeatherListener extends WeatherListener
@Override
public void onThunderChange(ThunderChangeEvent event)
{
if (event.isCancelled()) return;
if (event.isCancelled())
{
return;
}
if (EssentialsProtect.playerSettings.get("protect.disable.weather.thunder") && event.toThunderState())
{
event.setCancelled(true);