From 244d027e5dfd8f415be806d0497892e07d58b962 Mon Sep 17 00:00:00 2001 From: Taah Date: Tue, 10 May 2022 22:34:39 -0700 Subject: [PATCH] fix this condition --- src/main/java/dev/plex/HTTPDModule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/dev/plex/HTTPDModule.java b/src/main/java/dev/plex/HTTPDModule.java index e386f9f..9f45450 100644 --- a/src/main/java/dev/plex/HTTPDModule.java +++ b/src/main/java/dev/plex/HTTPDModule.java @@ -53,7 +53,7 @@ public class HTTPDModule extends PlexModule { moduleConfig.load(); PlexLog.debug("HTTPD Module Port: {0}", moduleConfig.getInt("server.port")); - if (!setupPermissions() && getPlex().getSystem().equalsIgnoreCase("permissions") && !Bukkit.getPluginManager().isPluginEnabled("Vault")) + if ((!Bukkit.getPluginManager().isPluginEnabled("Vault") || !setupPermissions()) && getPlex().getSystem().equalsIgnoreCase("permissions")) { throw new RuntimeException("Plex-HTTPD requires the 'Vault' plugin as well as a Permissions plugin that hooks into 'Vault'. We recommend LuckPerms!"); }