Configuration file structure

Configuration file structure

  • configVersion: Plugin version this configuration is for (this is used to detect any need to automatically reorganize content). Default: current version.
  • decimalSeparatorASCII: Character code for the decimal separator in messages. Default: 46 (dot).
  • groupingSeparatorASCII: Character code for the thousand separator in messages. Default: 32 (space).
  • displayCustomMaterialNameInShop: Should custom material name be displayed while hovering over an item? Can also be set for each material individually. Default: false.
  • minimumProfitPerUnit: How much profit should the shop at least make per each unit sold? Setting purchasePriceMultiplier will be ignored if it would produce less profit than this minimum value. Default: 0.01.
  • postTradesToConsole: Do you want to see "AutoPrice v3.054: tubelius bought 2 TNT for 3.39 each (6.78 total)" like messages in your console (and server log)? Default: true.
  • purchasePriceMultiplier: The ratio of purchase price compared to price the player sold it originally. Default: 1.1.
  • purchasePriceMin: Minimum unit purchase price a material can get (not updated for existing stock). This global setting is used when there's no setting found in material and shop. Default: 999.99.
  • purchasePriceMax: Maximum unit purchase price a material can have (not updated for existing stock). This global setting is used when there's no setting found in material and shop. Default: 0.01.
  • tooltipPrefix: Prefix used to identify lores set by the plugin.
  • transactionSizePerClickType: Transaction size for each click type.
  • colors
    • command: Color for commands displayed in help messages. Default: 2 (dark green).
    • normal: Color for normal messages. Default: f (white).
    • parameter: Color for parameters in command descriptions. Default: b (aqua).
    • plugin: Color of the plugin name in messages. Default: 6 (gold/orange).
    • error: Color of the error messages. Default: c (red).
  • salesPrice
    • updateIntervalTicks: The interval between price updates in ticks. There are 20 ticks per second when server performs normally. This is ignored by the reload command. Restart your server after changing this.
  • shops
    • (Shop name. Multiple nodes.)
      • shopItemsPerPage: How many items should be added per page? Better keep it at 53 for now. If missing following nodes are checked: root.
      • optionsItemLocation: Number of the slot where options item should appear. 0 = first and 53 is last. If missing following nodes are checked: root.
      • categories: List of categories available in this shop.
      • purchasePriceMin: Minimum unit purchase price a material can get (not updated for existing stock). This shop specific setting is used when there's no setting found in material. Default: corresponding value in root node.
      • purchasePriceMax: Maximum unit purchase price a material can have (not updated for existing stock). This shop specific setting is used when there's no setting found in material. Default: corresponding value in root node.
      • materials
  • players
    • (Player's name. Multiple nodes.)
      • shopName: Name of the active shop. Default: default.
      • language: Language used to send messages to this player. Default: english.
  • defaultPlayerLanguage: Default language used when sending messages to a player without language. Default: english.
  • consoleLanguage: Language of messages sent to console. Default: english.
  • languages
    • (Name of the language. Multiple nodes.)
      • (Message. Multiple nodes.): Node is the message id (don't change) and value is the actual message. %s texts will be replaced by actual values, the number and order of these should not be changed!

Comments

Posts Quoted:
Reply
Clear All Quotes