mirror of
https://github.com/RonanPlugins/BetterRTP.git
synced 2026-04-05 07:26:03 +00:00
KingdomsX support fix
This commit is contained in:
@@ -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