mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-15 11:04:29 +02:00
CB 697
Fixes spawning of web and new rails. New config: Disable Lightning damage for players. git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1258 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
@@ -111,7 +111,7 @@ public class EssentialsProtectEntityListener extends EntityListener
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
DamageCause cause = event.getCause();
|
||||
Entity casualty = event.getEntity();
|
||||
if (casualty instanceof Player)
|
||||
@@ -138,6 +138,11 @@ public class EssentialsProtectEntityListener extends EntityListener
|
||||
event.setCancelled(true);
|
||||
return;
|
||||
}
|
||||
if (EssentialsProtect.playerSettings.get("protect.disable.lightning") && cause == DamageCause.LIGHTNING)
|
||||
{
|
||||
event.setCancelled(true);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user