mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-28 05:35:44 +01:00
parent
87c54aaf08
commit
a6d25d68a9
@ -26,7 +26,7 @@ public class DeathListener implements Listener {
|
||||
|
||||
@EventHandler(priority = EventPriority.NORMAL, ignoreCancelled = true)
|
||||
public void onPlayerDeathEvent(PlayerDeathEvent e) {
|
||||
if (plugin.getIWM().inWorld(e.getEntity().getLocation())) {
|
||||
if (plugin.getIWM().inWorld(e.getEntity().getLocation()) && plugin.getIWM().getWorldSettings(e.getEntity().getLocation().getWorld()).isDeathsCounted()) {
|
||||
plugin.getPlayers().addDeath(e.getEntity().getWorld(), e.getEntity().getUniqueId());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user