mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-21 18:15:32 +01:00
Check for ZNPCsPlus before class, fixes #2180
This commit is contained in:
parent
3f2465fe6c
commit
38d58088be
@ -195,7 +195,7 @@ public class BukkitDependencies implements Dependencies {
|
||||
}
|
||||
|
||||
public ZNPCsPlus getZnpcsPlus() {
|
||||
if (znpcsPlusLegacy == null) {
|
||||
if (znpcsPlusLegacy == null && isPluginAvailable("ZNPCsPlus")) {
|
||||
try {
|
||||
Class.forName("lol.pyr.znpcsplus.ZNPCsPlus");
|
||||
znpcsPlusLegacy = (ZNPCsPlus) plugin.getServer().getPluginManager().getPlugin("ZNPCsPlus");
|
||||
|
Loading…
Reference in New Issue
Block a user