Check for ZNPCsPlus before class, fixes #2180

This commit is contained in:
PikaMug 2024-01-15 23:30:28 -05:00
parent 3f2465fe6c
commit 38d58088be

View File

@ -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");