From fe38a3978dde880040fbf3f57fc2c5eac778afdf Mon Sep 17 00:00:00 2001 From: Joey Hines Date: Fri, 6 Aug 2021 21:27:57 -0600 Subject: [PATCH] Check if Shopkeepers is present before trying to enable it --- src/main/java/xyz/etztech/qol/QoL.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/xyz/etztech/qol/QoL.java b/src/main/java/xyz/etztech/qol/QoL.java index 10d61f7..9a93714 100644 --- a/src/main/java/xyz/etztech/qol/QoL.java +++ b/src/main/java/xyz/etztech/qol/QoL.java @@ -94,16 +94,16 @@ public class QoL extends JavaPlugin { } } + // DiscordSRV Hook if (Bukkit.getPluginManager().isPluginEnabled("DiscordSRV")) { new DiscordSRVListener(this); } - - try { + // Shopkeepers Hook + if (Bukkit.getPluginManager().isPluginEnabled("Shopkeepers")) { shopkeepersAPI = ShopkeepersPlugin.getInstance(); - log("Hooked in Shopkeepers for the Donor Shop"); + log("Hooked in Shopkeepers for the head shop"); } - catch (Exception ignored) {} if( isEnabled() ) {