mirror of
https://github.com/PikaMug/Quests.git
synced 2024-09-12 07:28:06 +02:00
Require official PhatLoots rather than cause errors, fixes #766
This commit is contained in:
parent
9857e8c203
commit
8c209e9b6f
@ -133,7 +133,11 @@ public class Dependencies {
|
||||
heroes = (Heroes) plugin.getServer().getPluginManager().getPlugin("Heroes");
|
||||
}
|
||||
if (isPluginAvailable("PhatLoots")) {
|
||||
phatLoots = (PhatLoots) plugin.getServer().getPluginManager().getPlugin("PhatLoots");
|
||||
try {
|
||||
phatLoots = (PhatLoots) plugin.getServer().getPluginManager().getPlugin("PhatLoots");
|
||||
} catch (NoClassDefFoundError e) {
|
||||
plugin.getLogger().warning("Unofficial version of PhatLoots found. PhatLoots in Quests not enabled.");
|
||||
}
|
||||
}
|
||||
if (isPluginAvailable("PlaceholderAPI")) {
|
||||
placeholder = (PlaceholderAPIPlugin) plugin.getServer().getPluginManager().getPlugin("PlaceholderAPI");
|
||||
|
Loading…
Reference in New Issue
Block a user