From 8f7d92959edd7eadd9d38fa2b87f53fde4189cbe Mon Sep 17 00:00:00 2001 From: Fabrizio La Rosa Date: Sun, 21 Jun 2020 20:05:54 +0200 Subject: [PATCH] CoreProtect support for explosions --- src/main/java/com/songoda/skyblock/listeners/Entity.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/songoda/skyblock/listeners/Entity.java b/src/main/java/com/songoda/skyblock/listeners/Entity.java index 1a0a954d..3e2522e0 100644 --- a/src/main/java/com/songoda/skyblock/listeners/Entity.java +++ b/src/main/java/com/songoda/skyblock/listeners/Entity.java @@ -423,6 +423,10 @@ public class Entity implements Listener { removeBlockFromLevel(island, block); } + if(skyblock.getCoreProtectAPI() != null) { + skyblock.getCoreProtectAPI().logRemoval("#" + entity.getType().toString().toLowerCase(), block.getLocation(), material.getMaterial(), null); + } + it.remove(); if(!removed){ removed = true;