Check if Shopkeepers is present before trying to enable it

pull/18/head
Joey Hines 2021-08-06 21:27:57 -06:00
parent b6ffbf7168
commit fe38a3978d
No known key found for this signature in database
GPG Key ID: 80F567B5C968F91B
1 changed files with 4 additions and 4 deletions

View File

@ -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() ) {