mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-03 15:08:18 +01:00
cleanup
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1520 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
parent
7ed87d696a
commit
1c5d9b1db0
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user