mirror of
https://github.com/RonanPlugins/BetterRTP.git
synced 2026-02-16 10:30:58 +00:00
KingdomsX support fix
This commit is contained in:
12
pom.xml
12
pom.xml
@@ -213,12 +213,18 @@
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<!-- KingdomsX v1.10.5.2 (https://www.spigotmc.org/resources/kingdomsx.77670/) -->
|
||||
<!--dependency>
|
||||
<dependency>
|
||||
<groupId>com.github.cryptomorin</groupId>
|
||||
<artifactId>kingdoms</artifactId>
|
||||
<version>1.10.5.2</version>
|
||||
<version>1.10.5.3</version>
|
||||
<scope>provided</scope>
|
||||
</dependency-->
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>*</groupId>
|
||||
<artifactId>*</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<!-- Particles Library -->
|
||||
<dependency>
|
||||
<groupId>xyz.xenondevs</groupId>
|
||||
|
||||
@@ -16,7 +16,6 @@ import me.angeschossen.lands.api.integration.LandsIntegration;
|
||||
import me.angeschossen.lands.api.land.Land;
|
||||
import me.ryanhamshire.GriefPrevention.GriefPrevention;
|
||||
import org.bukkit.Location;
|
||||
//import org.kingdoms.constants.land.Land;
|
||||
|
||||
public class RTPPluginValidation { //Safe locations depending on enabled dependencies
|
||||
|
||||
@@ -148,8 +147,8 @@ public class RTPPluginValidation { //Safe locations depending on enabled depende
|
||||
boolean result = true;
|
||||
if (getPl().getSettings().getsDepends().isKingdomsX())
|
||||
try {
|
||||
//Land land = Land.getLand(loc);
|
||||
//result = land == null || !land.isClaimed();
|
||||
org.kingdoms.constants.land.Land land = org.kingdoms.constants.land.Land.getLand(loc);
|
||||
result = land == null || !land.isClaimed();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ Settings:
|
||||
## Respect Residence areas (https://www.spigotmc.org/resources/residence.11480/)
|
||||
Residence: false
|
||||
## Respect KingdomsX areas (https://www.spigotmc.org/resources/kingdomsx.77670/)
|
||||
#KingdomsX: false
|
||||
KingdomsX: false
|
||||
## Output to console some debugging info
|
||||
Debugger: false
|
||||
## Amount of chunks to preload around a safe location
|
||||
|
||||
Reference in New Issue
Block a user