Check if Shopkeepers is present before trying to enable it
parent
b6ffbf7168
commit
fe38a3978d
|
@ -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() ) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue