From c4b096434c8dbcbe742cef8e5c77cc57a8fde41a Mon Sep 17 00:00:00 2001 From: SoSeDiK Date: Tue, 26 Mar 2019 22:17:33 +0200 Subject: [PATCH] Updated CoreProtect API --- pom.xml | 16 ++++++++-------- .../Slimefun/Setup/SlimefunSetup.java | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/pom.xml b/pom.xml index 5f32e1531..4869051b5 100644 --- a/pom.xml +++ b/pom.xml @@ -20,16 +20,16 @@ worldedit-worldguard-repo - http://maven.sk89q.com/repo/ + https://maven.sk89q.com/repo/ + + + coreprotect-repo + https://maven.playpro.com/ jitpack.io https://jitpack.io - - robomwm-repo - https://dl.bintray.com/robomwm/maven - ${project.basedir}/src @@ -73,7 +73,7 @@ net.coreprotect - CoreProtect + coreprotect me.mrCookieSlime @@ -112,8 +112,8 @@ net.coreprotect - CoreProtect - 2.14.2 + coreprotect + 2.16.0 me.mrCookieSlime diff --git a/src/me/mrCookieSlime/Slimefun/Setup/SlimefunSetup.java b/src/me/mrCookieSlime/Slimefun/Setup/SlimefunSetup.java index f6c0de546..da4279d09 100644 --- a/src/me/mrCookieSlime/Slimefun/Setup/SlimefunSetup.java +++ b/src/me/mrCookieSlime/Slimefun/Setup/SlimefunSetup.java @@ -2251,7 +2251,7 @@ public class SlimefunSetup { Block b = e.getBlock().getRelative(x, y, z); if (b.getType() != Material.AIR && !StringUtils.equals(b.getType().toString(), explosiveblacklist)) { if (CSCoreLib.getLib().getProtectionManager().canBuild(e.getPlayer().getUniqueId(), b)) { - if (SlimefunStartup.instance.isCoreProtectInstalled()) SlimefunStartup.instance.getCoreProtectAPI().logRemoval(e.getPlayer().getName(), b.getLocation(), b.getType(), b.getData()); + if (SlimefunStartup.instance.isCoreProtectInstalled()) SlimefunStartup.instance.getCoreProtectAPI().logRemoval(e.getPlayer().getName(), b.getLocation(), b.getType(), b.getBlockData()); b.getWorld().playEffect(b.getLocation(), Effect.STEP_SOUND, b.getType()); SlimefunItem sfItem = BlockStorage.check(b); boolean allow = true;