HuskTowns and Lands api updates

This commit is contained in:
SuperRonanCraft
2023-02-21 21:24:52 -05:00
parent 8e2002d294
commit 3cb691a765
3 changed files with 9 additions and 7 deletions

View File

@@ -53,7 +53,6 @@
<phase>clean</phase>
<configuration>
<file>${basedir}/LocalJars/Residence4.9.1.9.jar</file>
<repositoryLayout>default</repositoryLayout>
<groupId>com.bekvon.bukkit</groupId>
<artifactId>residence</artifactId>
<version>4.9.1.9</version>
@@ -69,7 +68,6 @@
<phase>clean</phase>
<configuration>
<file>${basedir}/LocalJars/hClaims.jar</file>
<repositoryLayout>default</repositoryLayout>
<groupId>com.hakan</groupId>
<artifactId>claimapi</artifactId>
<version>2.1.8</version>
@@ -94,6 +92,10 @@
<pattern>io.papermc.lib</pattern>
<shadedPattern>me.SuperRonanCraft.BetterRTP.paperlib</shadedPattern>
</relocation>
<!--relocation>
<pattern>xyz.xenondevs.particle</pattern>
<shadedPattern>me.SuperRonanCraft.BetterRTP.particleLib</shadedPattern>
</relocation-->
</relocations>
</configuration>
<executions>
@@ -311,7 +313,7 @@
<groupId>xyz.xenondevs</groupId>
<artifactId>particle</artifactId>
<version>1.8.3</version>
<scope>compile</scope>
<scope>provided</scope>
</dependency>
<!-- Lombok Support (@Getter & @Setter)-->
<dependency>

View File

@@ -2,7 +2,7 @@ package me.SuperRonanCraft.BetterRTP.references.depends.regionPlugins;
import me.SuperRonanCraft.BetterRTP.BetterRTP;
import me.SuperRonanCraft.BetterRTP.references.settings.SoftDepends;
import net.william278.husktowns.HuskTownsAPI;
import net.william278.husktowns.api.HuskTownsAPI;
import org.bukkit.Location;
public class RTP_HuskTowns implements RegionPluginCheck {
@@ -14,7 +14,7 @@ public class RTP_HuskTowns implements RegionPluginCheck {
boolean result = true;
if (REGIONPLUGINS.HUSKTOWNS.isEnabled())
try {
result = !HuskTownsAPI.getInstance().isClaimed(loc);
result = !HuskTownsAPI.getInstance().getClaimAt(loc).isPresent();
} catch (Exception e) {
e.printStackTrace();
}

View File

@@ -2,7 +2,7 @@ package me.SuperRonanCraft.BetterRTP.references.depends.regionPlugins;
import me.SuperRonanCraft.BetterRTP.BetterRTP;
import me.SuperRonanCraft.BetterRTP.references.settings.SoftDepends;
import me.angeschossen.lands.api.integration.LandsIntegration;
import me.angeschossen.lands.api.LandsIntegration;
import org.bukkit.Location;
public class RTP_Lands implements RegionPluginCheck {
@@ -14,7 +14,7 @@ public class RTP_Lands implements RegionPluginCheck {
boolean result = true;
if (REGIONPLUGINS.LANDS.isEnabled())
try {
result = !(new LandsIntegration(BetterRTP.getInstance()).isClaimed(loc));
result = !(LandsIntegration.of(BetterRTP.getInstance()).getArea(loc) == null);
} catch (Exception e) {
e.printStackTrace();
}