Skip to content

Syrql/TurnMarket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

🔁 TurnMarket 🔁

forthebadge

TurnMarket is a plugin that will change items at different defined times. You can buy or sell item. You can all edit the plugin in config.yml file. Each time the market runs, new items are selected and displayed in a menu. It is therefore possible to buy and resell objects. The interfaces are all modifiable, at each rotation, new items are randomly selected from the config.yml file.

Synopsis

To start, you have to use your brain to read this documentation.

Requirements

You have to follow the instructions below.

  • 💸 Economy plugin (Vault) (depend)
  • 💙 PlaceHolderAPI (softdepend)

Plugin Installation

After buying the plugin, just put into your plugins folder the .jar, and dont forget to use an Economy plugin.

Config: You can easily edit Config by using config.yml file [...]

PlaceHolderAPI

How to use PlaceHolderAPI implementation?

  • %turnmarket_shop_name/<shopName>% - Replace <shopName> by your custom shop name. Return the custom display name of a shop.
  • %turnmarket_shop_time-left/<shopName>% - Replace <shopName> by your custom shop name. Return the timeleft before next rotation
  • %turnmarket_shop_next-rotate/<shopName>% - Replace <shopName> by your custom shop name. Return the time of the next rotation

Config

  • You can manually add in config.yml file multiple addons for use better the plugin.

Shop & Inventory

Default config keys

  • TURN-TIME - Scheduler feature (Add in your config multiple rotate time. For example: "08:00")
  • MAX-ITEMS - Max display items on inventory (Default: 5)
  • NAME - Shop name (Example: "farm")
  • DISPLAY-NAME - Shop display name (Example: "&7[&e⛃&7] &e&lFarm")
  • SIZE - Inventory size (Default: 5)
  • ALLOWED-SLOT - Allowed slot in inventory (where item will be place)
    ALLOWED-SLOT:
      - 20
      - 21
      - 22
      - 23
      - 24
      - 25

Items

      1:
        MATERIAL: "STONE" (Item type)
        NAME: "&7Stone" (Item name)
        LORE: (Item lore)
          - " "
          - "&aBuy: &e%buy-price% &a(Right-Click)"
          - "&cSell: &e%sell-price% &c(Left-click)"
        PRICE: 50 (Item buy price. Set -1 value if it's not possible to buy)
        SELL: 10 (Item sell price. Set -1 value if it's not possible to sell)
        QUANTITY: 1 (Item quantity)

Increment Items

    1:
      NAME: "&a(+) &eAdd &6&l1"
      QUANTITY: 1
      MATERIAL: "INK_SACK"
      MATERIAL-ID: 10
      SLOT: 15
      TYPE: "I_ADD"

Decrement Items

    4:
      NAME: "&c(-) &eSet to &6&l1"
      QUANTITY: 1
      MATERIAL: "INK_SACK"
      MATERIAL-ID: 1
      SLOT: 29
      TYPE: "D_SET"

Config keys

  • I_ADD Increment item by using QUANTITY
  • I_SET Set item amount by using QUANTITY
  • D_REMOVE Decrement item by using QUANTITY
  • D_SET Set item amount by using QUANTITY

Custom config key

  • COMMAND Add this key in Item section Example: COMMAND: "give %player% diamond %amount%"

Purchase

To purchase the last plugin version, you can click on one of the links below

🌟 Last version : 0.0.1

Autor

The only autor of TurnMarket:

Contact

License

This project is using MIT Licence - LICENSE.md for more informations.

About

TurnMarket plugin documentation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published