Mark BossShop signs as erroneous if plugin is not available

This commit is contained in:
Daniel Saukel 2016-08-24 16:23:06 +02:00
parent cf557a61e2
commit 385d32a181

View File

@ -67,7 +67,7 @@ public class BossShopSign extends DSign {
@Override
public void onInit() {
if (bossShop.getAPI().getShop(lines[1]) == null) {
if (bossShop == null || bossShop.getAPI().getShop(lines[1]) == null) {
markAsErroneous();
return;
}