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.

Last updated

Sign in

New here? Just enter your email: the account is created when you click the link. No password needed.

or

We send you a link that signs you in with one click. It works for new and existing accounts.

Sign in with a password instead

By continuing you accept the Terms & Conditions and the Privacy policy.

Staff: open “Sign in with a password instead” and type your username instead of the email. After the password we ask for your 2FA code.