Rotating shops

A shop with rotating_shop: has slots where the items take turns:
rotating_shop:
normal_slots: [20, 21, 22]
premium_slots: [24]
normal_refresh: 21600 # seconds (6 hours)
premium_refresh: 86400 # 24 hours
items:
dirt:
material: "DIRT"
amount: 64
name: "&#c08b5c&lDirt &7x64"
price: 20
give: ["DIRT 64"]
rotating_shop:
type: normal # normal / premium
stock_type: SERVER # SERVER = one stock for everybody, PLAYER = each player
stock_amount: 10 # pieces of one rotation, 0 = no limit
- Rotating items don't need a slot: the plugin puts them in the normal / premium slots.
{stock}{max_stock}: stock of the rotation.{normal_time_left}{premium_time_left}: everywhere in the shop and in PlaceholderAPI (%flaremobcoins_normal_shop_<shop>_time%).- The rotation and the stock are saved in
data/state.yml: a restart keeps the same items. - A message is broadcast when the items change (
shop.rotating-resetinlang/en.yml,""= off). - 3.x rotating items with
click_commandsand[buy(mobcoins)]work as they are.
In the editor the rotating slots are green (normal) and pink (premium) panes: shift + left click one to see the items of the rotation, add the item in your hand, change how often they change or change them right now.
Actualizat ultima data pe