Skip to content

Commit

Permalink
Add support for BossShopPro; resolvse #624
Browse files Browse the repository at this point in the history
  • Loading branch information
Sataniel98 committed Jul 28, 2019
1 parent 409de0d commit d74c027
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
*/
public class BossShopSign extends DSign {

BossShop bossShop = (BossShop) Bukkit.getPluginManager().getPlugin("BossShop");
private BossShop bossShop;

private String shopName;

Expand Down Expand Up @@ -65,6 +65,11 @@ public boolean check() {

@Override
public void onInit() {
if (Bukkit.getPluginManager().isPluginEnabled("BossShopPro")) {
bossShop = (BossShop) Bukkit.getPluginManager().getPlugin("BossShopPro");
} else {
bossShop = (BossShop) Bukkit.getPluginManager().getPlugin("BossShop");
}
if (bossShop == null) {
markAsErroneous("BossShop not enabled");
return;
Expand Down

0 comments on commit d74c027

Please sign in to comment.