mirror of
https://github.com/RonanPlugins/BetterRTP.git
synced 2026-10-12 03:24:12 +00:00
HuskTowns and Lands api updates
This commit is contained in:
@@ -53,7 +53,6 @@
|
|||||||
<phase>clean</phase>
|
<phase>clean</phase>
|
||||||
<configuration>
|
<configuration>
|
||||||
<file>${basedir}/LocalJars/Residence4.9.1.9.jar</file>
|
<file>${basedir}/LocalJars/Residence4.9.1.9.jar</file>
|
||||||
<repositoryLayout>default</repositoryLayout>
|
|
||||||
<groupId>com.bekvon.bukkit</groupId>
|
<groupId>com.bekvon.bukkit</groupId>
|
||||||
<artifactId>residence</artifactId>
|
<artifactId>residence</artifactId>
|
||||||
<version>4.9.1.9</version>
|
<version>4.9.1.9</version>
|
||||||
@@ -69,7 +68,6 @@
|
|||||||
<phase>clean</phase>
|
<phase>clean</phase>
|
||||||
<configuration>
|
<configuration>
|
||||||
<file>${basedir}/LocalJars/hClaims.jar</file>
|
<file>${basedir}/LocalJars/hClaims.jar</file>
|
||||||
<repositoryLayout>default</repositoryLayout>
|
|
||||||
<groupId>com.hakan</groupId>
|
<groupId>com.hakan</groupId>
|
||||||
<artifactId>claimapi</artifactId>
|
<artifactId>claimapi</artifactId>
|
||||||
<version>2.1.8</version>
|
<version>2.1.8</version>
|
||||||
@@ -94,6 +92,10 @@
|
|||||||
<pattern>io.papermc.lib</pattern>
|
<pattern>io.papermc.lib</pattern>
|
||||||
<shadedPattern>me.SuperRonanCraft.BetterRTP.paperlib</shadedPattern>
|
<shadedPattern>me.SuperRonanCraft.BetterRTP.paperlib</shadedPattern>
|
||||||
</relocation>
|
</relocation>
|
||||||
|
<!--relocation>
|
||||||
|
<pattern>xyz.xenondevs.particle</pattern>
|
||||||
|
<shadedPattern>me.SuperRonanCraft.BetterRTP.particleLib</shadedPattern>
|
||||||
|
</relocation-->
|
||||||
</relocations>
|
</relocations>
|
||||||
</configuration>
|
</configuration>
|
||||||
<executions>
|
<executions>
|
||||||
@@ -311,7 +313,7 @@
|
|||||||
<groupId>xyz.xenondevs</groupId>
|
<groupId>xyz.xenondevs</groupId>
|
||||||
<artifactId>particle</artifactId>
|
<artifactId>particle</artifactId>
|
||||||
<version>1.8.3</version>
|
<version>1.8.3</version>
|
||||||
<scope>compile</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<!-- Lombok Support (@Getter & @Setter)-->
|
<!-- Lombok Support (@Getter & @Setter)-->
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|||||||
+2
-2
@@ -2,7 +2,7 @@ package me.SuperRonanCraft.BetterRTP.references.depends.regionPlugins;
|
|||||||
|
|
||||||
import me.SuperRonanCraft.BetterRTP.BetterRTP;
|
import me.SuperRonanCraft.BetterRTP.BetterRTP;
|
||||||
import me.SuperRonanCraft.BetterRTP.references.settings.SoftDepends;
|
import me.SuperRonanCraft.BetterRTP.references.settings.SoftDepends;
|
||||||
import net.william278.husktowns.HuskTownsAPI;
|
import net.william278.husktowns.api.HuskTownsAPI;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
|
|
||||||
public class RTP_HuskTowns implements RegionPluginCheck {
|
public class RTP_HuskTowns implements RegionPluginCheck {
|
||||||
@@ -14,7 +14,7 @@ public class RTP_HuskTowns implements RegionPluginCheck {
|
|||||||
boolean result = true;
|
boolean result = true;
|
||||||
if (REGIONPLUGINS.HUSKTOWNS.isEnabled())
|
if (REGIONPLUGINS.HUSKTOWNS.isEnabled())
|
||||||
try {
|
try {
|
||||||
result = !HuskTownsAPI.getInstance().isClaimed(loc);
|
result = !HuskTownsAPI.getInstance().getClaimAt(loc).isPresent();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -2,7 +2,7 @@ package me.SuperRonanCraft.BetterRTP.references.depends.regionPlugins;
|
|||||||
|
|
||||||
import me.SuperRonanCraft.BetterRTP.BetterRTP;
|
import me.SuperRonanCraft.BetterRTP.BetterRTP;
|
||||||
import me.SuperRonanCraft.BetterRTP.references.settings.SoftDepends;
|
import me.SuperRonanCraft.BetterRTP.references.settings.SoftDepends;
|
||||||
import me.angeschossen.lands.api.integration.LandsIntegration;
|
import me.angeschossen.lands.api.LandsIntegration;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
|
|
||||||
public class RTP_Lands implements RegionPluginCheck {
|
public class RTP_Lands implements RegionPluginCheck {
|
||||||
@@ -14,7 +14,7 @@ public class RTP_Lands implements RegionPluginCheck {
|
|||||||
boolean result = true;
|
boolean result = true;
|
||||||
if (REGIONPLUGINS.LANDS.isEnabled())
|
if (REGIONPLUGINS.LANDS.isEnabled())
|
||||||
try {
|
try {
|
||||||
result = !(new LandsIntegration(BetterRTP.getInstance()).isClaimed(loc));
|
result = !(LandsIntegration.of(BetterRTP.getInstance()).getArea(loc) == null);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user