ShopRotationEvent
Fired when a rotational shop rotates its items.
@EventHandler
public void onShopRotation(ShopRotationEvent event) {
Shop shop = event.getShop();
List<ShopItem> oldItems = event.getOldItems();
List<ShopItem> newItems = event.getNewItems();
System.out.println("Shop rotated: " + shop.title());
System.out.println("New items: " + newItems.size());
}Last updated