SpinToWin Wiki
English
English
  • 🎉Welcome
  • 📦Info
    • ✅Requirements
    • ⚙️Install
    • 🔗Compatibility
    • 🛠️Configuration files
    • ⌨️Commands
    • 📋Format
    • ❓FAQ
  • 🖥️Spin UI
    • 📝UI Config
      • Rewards Option
      • Prices Option
    • 🖼️Textures
  • ✨Features
    • 🎨Color Code
    • 🌍Localized Item Name
    • 💾Saved Item
    • 🔄Auto Copy Resource Pack
    • 🔍Custom Item Match Method
Powered by GitBook
On this page
  1. 📦Info

🛠️Configuration files

Previous🔗CompatibilityNext⌨️Commands

Last updated 3 months ago

The plugin generates the following configuration files, some of which will only be generated after you first use this feature.

  • ui: Save your card flop configurations.

  • item: Save your custom items.

  • language: Save language files.

  • pack: Save the resource pack that automatically generated by the plugin.

  • texture: Save your frame textures and icon textures.

  • generated-item-format.yml file: When using the /s2w generateeitemformat command, we will parse the item you are holding into an ItemFormat and store the parsed ItemFormat content in this file.

  • XX_xx.json file: Localized files automatically generated through feature. The name of this file is determined based on the localized language you have set for this feature, but it usually ends in . json.

If you just want use the default frame and icon texture, you don't need care about the pack and texture folder.

Config.yml file content

# SpinToWin by @rzt1020 & @PQguanfang
#
# READ THE WIKI: spintowin.superiormc.cn
#

config-files:
  language: english
  minecraft-locate-file:
    # After enable, we will autoload Minecraft locate file when we need know an item's locate name.
    # It will make server little lag when loading this file because this file is very large.
    enabled: true
    generate-new-one: false
    file: 'zh_cn.json'

# Paper only feature.
paper-api:
  save-item: true
  skull: true
  use-component:
    gui-title: false
    message: false

check-permission-limit: false

# Item Price
item-price:
  # Support Value: Bukkit, ItemFormat.
  check-method: Bukkit
  item-format:
    ignore-key:
      - 'lore'
      - 'damage'
      - 'tool.damage-per-block'

# Support Value: UUID, Name.
data-save-mode: UUID

math:
  enabled: true

spin-ui:
  add-lore:
    # If set to true, we will add lore at first line.
    # If set to false, we will add lore at last line.
    at-first-or-last: false
    common-reward:
      - '&7Rate: %rate%%'
    last-reward:
      - '&3(Will obtain if all rewards have claimed!)'
  # Set to -1 to disable cooldown system.
  spin-button-cooldown: 20
  can-not-close-when-spinning: false

auto-copy-resourcepack:
  enabled: true
  # If you are using Oraxen, please change this to Oraxen.
  # Other plugins is OK, you just need put correct path in path option.
  plugin: "ItemsAdder"
  # If you are using Oraxen, please change this to "/pack/assets".
  path: "/contents/spintowin/resourcepack/"

mysql:
  enabled: false
  host: localhost
  port: 3306
  user: root
  pass: root
  database: data

# Support local data only.
auto-save:
  enabled: false
  period-tick: 6000
  hide-message: false
Localized Item Name