mirror of
https://github.com/RonanPlugins/BetterRTP.git
synced 2025-08-18 01:25:45 +00:00
fixed plugin enable checks
This commit is contained in:
parent
18febd2da1
commit
5f43375755
@ -208,7 +208,7 @@ public class RTPPluginValidation { //Safe locations depending on enabled depende
|
|||||||
// https://songoda.com/marketplace/product/ultimateclaims-the-ultimate-claiming-plugin.65
|
// https://songoda.com/marketplace/product/ultimateclaims-the-ultimate-claiming-plugin.65
|
||||||
private boolean getUltimateClaims(Location loc) {
|
private boolean getUltimateClaims(Location loc) {
|
||||||
boolean result = true;
|
boolean result = true;
|
||||||
if (getDepends().isPueblos())
|
if (getDepends().isUltimateClaims())
|
||||||
try {
|
try {
|
||||||
result = UltimateClaims.getInstance().getClaimManager().getClaim(loc.getChunk()) == null;
|
result = UltimateClaims.getInstance().getClaimManager().getClaim(loc.getChunk()) == null;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
@ -222,7 +222,7 @@ public class RTPPluginValidation { //Safe locations depending on enabled depende
|
|||||||
// https://www.spigotmc.org/resources/pueblos.91255/
|
// https://www.spigotmc.org/resources/pueblos.91255/
|
||||||
private boolean getPueblos(Location loc) {
|
private boolean getPueblos(Location loc) {
|
||||||
boolean result = true;
|
boolean result = true;
|
||||||
if (getDepends().isUltimateClaims())
|
if (getDepends().isPueblos())
|
||||||
try {
|
try {
|
||||||
result = Pueblos.getInstance().getClaimHandler().getClaimMain(loc) == null;
|
result = Pueblos.getInstance().getClaimHandler().getClaimMain(loc) == null;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user