mirror of
https://github.com/RonanPlugins/BetterRTP.git
synced 2026-02-16 10:30:58 +00:00
HuskTowns and Lands api updates
This commit is contained in:
8
pom.xml
8
pom.xml
@@ -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>
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user