mirror of
https://github.com/EpicEricEE/ShopChest.git
synced 2024-11-08 20:01:25 +01:00
parent
8b8c7d4d73
commit
9583b77413
@ -28,8 +28,8 @@ public class ShopUpdateListener implements Listener {
|
|||||||
@EventHandler(priority = EventPriority.MONITOR)
|
@EventHandler(priority = EventPriority.MONITOR)
|
||||||
public void onPlayerJoin(PlayerJoinEvent e) {
|
public void onPlayerJoin(PlayerJoinEvent e) {
|
||||||
for (Shop shop : plugin.getShopUtils().getShops()) {
|
for (Shop shop : plugin.getShopUtils().getShops()) {
|
||||||
shop.getHologram().hidePlayer(e.getPlayer());
|
if (shop.getHologram() != null) shop.getHologram().hidePlayer(e.getPlayer());
|
||||||
shop.getItem().setVisible(e.getPlayer(), false);
|
if (shop.getItem() != null) shop.getItem().setVisible(e.getPlayer(), false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user