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