mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-28 13:36:33 +01:00
Add support for BossShopPro; resolvse #624
This commit is contained in:
parent
409de0d756
commit
d74c0276ea
@ -34,7 +34,7 @@ import org.bukkit.entity.Player;
|
||||
*/
|
||||
public class BossShopSign extends DSign {
|
||||
|
||||
BossShop bossShop = (BossShop) Bukkit.getPluginManager().getPlugin("BossShop");
|
||||
private BossShop bossShop;
|
||||
|
||||
private String shopName;
|
||||
|
||||
@ -65,6 +65,11 @@ public class BossShopSign extends DSign {
|
||||
|
||||
@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;
|
||||
|
Loading…
Reference in New Issue
Block a user