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.

Actualizat ultima data pe

Autentificare

Esti nou? Scrie doar emailul: contul se creeaza cand apesi pe link. Nu ai nevoie de parola.

sau

Iti trimitem un link care te autentifica dintr-un click. Merge si pentru conturi noi, si pentru cele existente.

Autentifica-te cu parola
Ai uitat parola?

Continuand, accepti Termeni si conditii si Politica de confidentialitate.

Staff: deschide „Autentifica-te cu parola” si scrie numele de utilizator in loc de email. Dupa parola iti cerem codul 2FA.