mirror of
https://github.com/RonanPlugins/BetterRTP.git
synced 2026-02-16 02:21:06 +00:00
fix hClaims support (#133)
* fix hClaims support * remove unnecessary depend
This commit is contained in:
7
pom.xml
7
pom.xml
@@ -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 -->
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user