mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-21 18:15:32 +01:00
Check NPC registry at startup, fixes #2168
This commit is contained in:
parent
8507ebcb64
commit
85c99bac5a
@ -633,10 +633,12 @@ public class BukkitQuestsPlugin extends JavaPlugin implements Quests {
|
||||
depends.unlinkCitizens();
|
||||
}
|
||||
}
|
||||
if (depends.getZnpcsPlusApi() == null) {
|
||||
getLogger().log(Level.SEVERE,
|
||||
"ZNPCsPlus was enabled but NpcApiProvider was null. Disabling linkage.");
|
||||
depends.unlinkZnpcsPlusApi();
|
||||
if (depends.getZnpcsPlusApi() != null) {
|
||||
if (depends.getZnpcsPlusApi().getNpcRegistry() == null) {
|
||||
getLogger().log(Level.SEVERE,
|
||||
"ZNPCsPlus was enabled but NpcApiProvider was null. Disabling linkage.");
|
||||
depends.unlinkZnpcsPlusApi();
|
||||
}
|
||||
}
|
||||
customLoader.init();
|
||||
questLoader.importQuests();
|
||||
|
Loading…
Reference in New Issue
Block a user