mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-22 10:36:09 +01:00
Invert plugin availability check per #1955
This commit is contained in:
parent
a02ca87d79
commit
44ce64a7e9
@ -206,7 +206,7 @@ public class Condition implements ICondition {
|
||||
} else if (!permissions.isEmpty()) {
|
||||
// Must have ALL listed permissions
|
||||
for (final String p : permissions) {
|
||||
if (plugin.getDependencies().isPluginAvailable("Vault")) {
|
||||
if (!plugin.getDependencies().isPluginAvailable("Vault")) {
|
||||
plugin.getLogger().warning("Vault must be installed for condition permission checks: " + p);
|
||||
return false;
|
||||
}
|
||||
@ -272,7 +272,7 @@ public class Condition implements ICondition {
|
||||
// Must have ALL listed placeholders equal true
|
||||
int index = 0;
|
||||
for (final String i : placeholdersCheckIdentifier) {
|
||||
if (plugin.getDependencies().isPluginAvailable("PlaceholderAPI")) {
|
||||
if (!plugin.getDependencies().isPluginAvailable("PlaceholderAPI")) {
|
||||
plugin.getLogger().warning("PAPI must be installed for placeholder checks: " + i);
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user