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")) {
|
if (Bukkit.getPluginManager().isPluginEnabled("DiscordSRV")) {
|
||||||
new DiscordSRVListener(this);
|
new DiscordSRVListener(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Shopkeepers Hook
|
||||||
try {
|
if (Bukkit.getPluginManager().isPluginEnabled("Shopkeepers")) {
|
||||||
shopkeepersAPI = ShopkeepersPlugin.getInstance();
|
shopkeepersAPI = ShopkeepersPlugin.getInstance();
|
||||||
log("Hooked in Shopkeepers for the Donor Shop");
|
log("Hooked in Shopkeepers for the head shop");
|
||||||
}
|
}
|
||||||
catch (Exception ignored) {}
|
|
||||||
|
|
||||||
if( isEnabled() ) {
|
if( isEnabled() ) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue