1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 03:35:51 +00:00

Merge pull request #858 from SoSeDiK/cp

Updated CoreProtect API
This commit is contained in:
TheBusyBiscuit 2019-03-27 16:37:13 +01:00 committed by GitHub
commit 3d3d6ab554
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 9 deletions

16
pom.xml
View File

@ -20,16 +20,16 @@
</repository>
<repository>
<id>worldedit-worldguard-repo</id>
<url>http://maven.sk89q.com/repo/</url>
<url>https://maven.sk89q.com/repo/</url>
</repository>
<repository>
<id>coreprotect-repo</id>
<url>https://maven.playpro.com/</url>
</repository>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
<repository>
<id>robomwm-repo</id>
<url>https://dl.bintray.com/robomwm/maven</url>
</repository>
</repositories>
<build>
<sourceDirectory>${project.basedir}/src</sourceDirectory>
@ -73,7 +73,7 @@
</dependency>
<dependency>
<groupId>net.coreprotect</groupId>
<artifactId>CoreProtect</artifactId>
<artifactId>coreprotect</artifactId>
</dependency>
<dependency>
<groupId>me.mrCookieSlime</groupId>
@ -112,8 +112,8 @@
</dependency>
<dependency>
<groupId>net.coreprotect</groupId>
<artifactId>CoreProtect</artifactId>
<version>2.14.2</version>
<artifactId>coreprotect</artifactId>
<version>2.16.0</version>
</dependency>
<dependency>
<groupId>me.mrCookieSlime</groupId>

View File

@ -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;