KingdomsX support fix

This commit is contained in:
SuperRonanCraft
2020-11-26 01:08:43 -05:00
parent ea84c94282
commit bc30bf1085
3 changed files with 12 additions and 7 deletions

12
pom.xml
View File

@@ -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>

View File

@@ -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();
}

View File

@@ -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