Skip to content

Configuration Files

DreamDevs edited this page May 8, 2023 · 3 revisions

Main configuration file - config.yml

All general options are in config.yml file, like databases, plugin features, etc.

update-checker: this option allows to on/off update information every several minutes. The value is set true by default

random-chests: this option allows to on/off randomize chests. If player opens a chest while this option is set to true, then random chest will open to the player.

holograms-on-chests: currently this option works only with HolographicDisplays - it sends hologram with information about the cooldown

combat.enable: this one is pretty obvious - if it is enabled, then combat functions will work

combat.time: this is time, which players cannot open any chest (combat functions)

chest-add-sound: here you put any minecraft sound from api docs

database.use: decide if you want to use database

database.type: decide which type of database you want to use (YAML, MySQL, SQLite)

database.auto-save-time: here is time in seconds. Every these seconds, minutes all data will save into database.

database.host: here is host to your database

database.user: here is user to your database

database.password: here you put password to your database

database.database: set the database name

database.port: database port, default 3306

Messages configuration - messages.yml

messages:
  loaded-messages: '&aLoaded {MESSAGES} messages!'
  not-player: '&cConsole cannot perform this command!'
  chest-command-correct-usage: '&cCorrect usage /randomlootchest <subcommand>'
  chest-command-reload: '&aReloaded all configuration files!'
  locations-saved: '&aSaved all chests locations!'
  add-chest: '&aAdded new chest: {CHEST}&a at location: {LOCATION}!'
  remove-chest: '&cRemoved chest!'
  gamechest-cooldown: 'Please wait {TIME} to open this chest!'
  found-money: 'You found: {MONEY}$'
  lost-money: 'You lost: {MONEY}$'
  hologram-on-chest: '&cTime to open chest: {TIME}'
  combat-cooldown: '&cYou cannot open any chest when you are in combat!'

Items configuration - items.yml

Items:
  example:
    Material: STONE
    Amount: 64
    DisplayName: '&6Example Stone'
    Chance: 0.9

Starter items configuration - starter.yml

lore-id-text: '&6Starter Item'

use-starter-items: true

starter-items:
  - IRON_HELMET:1
  - IRON_CHESTPLATE:1
  - IRON_LEGGINGS:1
  - IRON_BOOTS:1
  - IRON_SWORD:1:&b&This sword:&7Is the best;&8in the world!

Clone this wiki locally