mirror of
https://github.com/RonanPlugins/BetterRTP.git
synced 2026-04-24 00:57:17 +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>
|
<artifactId>maven-shade-plugin</artifactId>
|
||||||
<version>3.4.1</version>
|
<version>3.4.1</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<dependencyReducedPomLocation>${project.build.directory}/dependency-reduced-pom.xml</dependencyReducedPomLocation>
|
<dependencyReducedPomLocation>${project.build.directory}/dependency-reduced-pom.xml
|
||||||
|
</dependencyReducedPomLocation>
|
||||||
<relocations>
|
<relocations>
|
||||||
<relocation>
|
<relocation>
|
||||||
<pattern>io.papermc.lib</pattern>
|
<pattern>io.papermc.lib</pattern>
|
||||||
@@ -344,10 +345,12 @@
|
|||||||
</dependency-->
|
</dependency-->
|
||||||
<!-- Private Repoed -->
|
<!-- Private Repoed -->
|
||||||
<!-- This is uploaded to our private repo on https://repo.ronanplugins.com -->
|
<!-- This is uploaded to our private repo on https://repo.ronanplugins.com -->
|
||||||
|
<!-- hClaims (https://www.spigotmc.org/resources/90540/) -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.ronanplugins</groupId>
|
<groupId>com.ronanplugins</groupId>
|
||||||
<artifactId>hClaims</artifactId>
|
<artifactId>hClaims</artifactId>
|
||||||
<version>2.1.8</version>
|
<version>2.5.3</version>
|
||||||
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<!-- Private Repoed -->
|
<!-- Private Repoed -->
|
||||||
<!-- This is uploaded to our private repo on https://repo.ronanplugins.com -->
|
<!-- This is uploaded to our private repo on https://repo.ronanplugins.com -->
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
package me.SuperRonanCraft.BetterRTP.references.depends.regionPlugins;
|
package me.SuperRonanCraft.BetterRTP.references.depends.regionPlugins;
|
||||||
|
|
||||||
import com.hakan.claimsystem.api.ClaimAPI;
|
import com.hakan.claim.api.ClaimHandler;
|
||||||
import me.SuperRonanCraft.BetterRTP.BetterRTP;
|
|
||||||
import me.SuperRonanCraft.BetterRTP.references.settings.SoftDepends;
|
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
|
|
||||||
public class RTP_hClaims implements RegionPluginCheck {
|
public class RTP_hClaims implements RegionPluginCheck {
|
||||||
@@ -14,7 +12,7 @@ public class RTP_hClaims implements RegionPluginCheck {
|
|||||||
boolean result = true;
|
boolean result = true;
|
||||||
if (REGIONPLUGINS.HCLAIMS.isEnabled())
|
if (REGIONPLUGINS.HCLAIMS.isEnabled())
|
||||||
try {
|
try {
|
||||||
result = ClaimAPI.getInstance().isClaimed(loc);
|
result = ClaimHandler.has(loc);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user