TMDevelopmentTinulica & Maiky

Rotating shops

Rotating shops with stock, limits and a live timer

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-reset in lang/en.yml, "" = off).
  • 3.x rotating items with click_commands and [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.

Ultimo aggiornamento:

Accedi

Nuovo? Scrivi solo la tua email: l'account nasce quando clicchi il link. Nessuna password.

oppure

Ti mandiamo un link che ti fa entrare con un clic. Vale per account nuovi ed esistenti.

Entra con la password

Continuando accetti i Termini e condizioni e la Privacy policy.

Staff: apri “Entra con la password” e scrivi il tuo nome utente al posto dell’email. Dopo la password ti chiediamo il codice 2FA.