fix hClaims support (#133)

* fix hClaims support

* remove unnecessary depend
This commit is contained in:
Hakan Kargın
2023-04-29 19:51:23 +03:00
committed by GitHub
parent f7a65e21f1
commit 07e10ae241
2 changed files with 7 additions and 6 deletions

View File

@@ -55,7 +55,8 @@
<artifactId>maven-shade-plugin</artifactId>
<version>3.4.1</version>
<configuration>
<dependencyReducedPomLocation>${project.build.directory}/dependency-reduced-pom.xml</dependencyReducedPomLocation>
<dependencyReducedPomLocation>${project.build.directory}/dependency-reduced-pom.xml
</dependencyReducedPomLocation>
<relocations>
<relocation>
<pattern>io.papermc.lib</pattern>
@@ -344,10 +345,12 @@
</dependency-->
<!-- Private Repoed -->
<!-- This is uploaded to our private repo on https://repo.ronanplugins.com -->
<!-- hClaims (https://www.spigotmc.org/resources/90540/) -->
<dependency>
<groupId>com.ronanplugins</groupId>
<artifactId>hClaims</artifactId>
<version>2.1.8</version>
<version>2.5.3</version>
<scope>provided</scope>
</dependency>
<!-- Private Repoed -->
<!-- This is uploaded to our private repo on https://repo.ronanplugins.com -->

View File

@@ -1,8 +1,6 @@
package me.SuperRonanCraft.BetterRTP.references.depends.regionPlugins;
import com.hakan.claimsystem.api.ClaimAPI;
import me.SuperRonanCraft.BetterRTP.BetterRTP;
import me.SuperRonanCraft.BetterRTP.references.settings.SoftDepends;
import com.hakan.claim.api.ClaimHandler;
import org.bukkit.Location;
public class RTP_hClaims implements RegionPluginCheck {
@@ -14,7 +12,7 @@ public class RTP_hClaims implements RegionPluginCheck {
boolean result = true;
if (REGIONPLUGINS.HCLAIMS.isEnabled())
try {
result = ClaimAPI.getInstance().isClaimed(loc);
result = ClaimHandler.has(loc);
} catch (Exception e) {
e.printStackTrace();
}