fixed plugin enable checks

This commit is contained in:
SuperRonanCraft 2021-05-20 15:17:56 -04:00
parent 18febd2da1
commit 5f43375755

View File

@ -208,7 +208,7 @@ public class RTPPluginValidation { //Safe locations depending on enabled depende
// https://songoda.com/marketplace/product/ultimateclaims-the-ultimate-claiming-plugin.65
private boolean getUltimateClaims(Location loc) {
boolean result = true;
if (getDepends().isPueblos())
if (getDepends().isUltimateClaims())
try {
result = UltimateClaims.getInstance().getClaimManager().getClaim(loc.getChunk()) == null;
} catch (Exception e) {
@ -222,7 +222,7 @@ public class RTPPluginValidation { //Safe locations depending on enabled depende
// https://www.spigotmc.org/resources/pueblos.91255/
private boolean getPueblos(Location loc) {
boolean result = true;
if (getDepends().isUltimateClaims())
if (getDepends().isPueblos())
try {
result = Pueblos.getInstance().getClaimHandler().getClaimMain(loc) == null;
} catch (Exception e) {