Main Configuration

Main Configuration

View as Markdown ·

On this page

#General Configuration

Below is a list of options that are in the config.yml and a description of what they do.

  • Knockback - This option allows you to change the knockback that the player takes when trying to open a crate with the wrong key
  • Quick-Open - This option will enable players to quick open when holding the crate key and shifting right-clicking it.
  • Render-Radius - This option allows you to define the distance that effects will need to stop showing to the player.
  • Disable Confirmation Menus - This option allows you to skip confirmation menus (open money cost, selective reward mode) so players go straight to the action.
  • Key Mainhand Requirement - This option allows you to define whether players will need to have a key in their main hand to open crates. Enabled by default.
  • Event Actions - The actions every crate runs on open, win, close and denied, unless the crate has its own. See Event Actions.

All of these options can also be changed in-game from the editor's Settings menu.

Editor > Settings

The following ones exist only in the file:

  • Hologram Refresh Rate - How many ticks pass between two refreshes of the built-in crate holograms. A higher value updates placeholders in the hologram less often and costs less. Values below 10 are raised to 10.
  • Internal Pool Size - performance.internal-pool-size, the number of threads the plugin uses for its own background work such as database reads and animation preparation. The default of 5 suits almost every server. Raise it only if you run a very large network and see the plugin queueing work.
  • Notify If New Version - Whether players with the admin permission are told on join that a newer version of the plugin is out.
  • Join Reminder - Lite only, sends players with phoenixcrates.admin a message on join about the premium version.
  • Send Server Statistics - Lite only, send-server-statistics. Sends the server version, software, join domains and player count to our servers so the server shows on the website. See Server Statistics.
  • Debug - Adds verbose logging to the console, useful when reporting an issue.
  • Backups Keep - backups.keep, how many backup zips are kept. When a new one is saved, the oldest past this number are deleted. The default is 10. See Backups & Health Check.
  • Product License - Premium only, your license key. See Licensing.

#Broadcast Message (Lite)

The Lite version has a single broadcast message shared by every crate, set in config.yml. The Premium version does not use this option, because there the broadcast message is configured per crate from the editor.

YAML
crates:
  broadcast-message:
  - '&ePlayer &a%player% &ejust got &6"%reward%" &ereward from the crate &6%crate%&e!'

#Event Actions

Each event is a list of actions. An empty list runs nothing.

YAML
event-actions:
  open: []
  win:
  - '[SOUND] minecraft:entity.player.levelup; 1; 1'
  close: []
  denied: []

#Placeholder Cost Engine

The currency used by every crate whose open cost runs on the Placeholder engine. It is also editable from the crate's open cost, and each field is explained on Open Money Cost.

YAML
cost-engines:
  placeholder:
    display-name: Tokens
    balance: ''
    withdraw-command: ''
    whole-number: false

#Commands

The virtual keys and the pay key commands can each be turned off, and given an alternative name that is registered next to the default one, which is useful when another plugin already claims the same command.

Pay key is disabled by default, so /crates payKey only exists after enabling it here.

Changes apply on /crates reload, without a restart. An alternative name another plugin already uses is not registered, and the console says so. The command still works under /crates.

YAML
commands:
  virtual-keys:
    enabled: true
    alternative: virtualkeys
  pay-key:
    enabled: false
    alternative: paykey

#Bedrock

How Bedrock players joining through Geyser see the player menus: native forms, chest menu sizes and form icons. Every option is explained on the GeyserMC (Bedrock) page.

#Database

The plugin also supports databases. The available options are mysql and sqlite.

YAML
database:
  type: sqlite
  address: localhost
  name: phoenixcrates_db
  port: 3306
  username: phoenixuser
  password: phoenixpassword
  table-prefix: pc

On MySQL and MariaDB the plugin creates its tables in the utf8mb4 character set, so names, lore and messages can hold emoji and any symbol. Tables made in another character set by an older version are converted once at startup, with one console line per table. If a table cannot be converted, a console warning names it.

#Connection Pool

When using MySQL, the connection pool can be tuned under database.hikari. The defaults are good for a normal server, and are worth revisiting only if you run a large network or your database is on a different machine.

YAML
database:
  hikari:
    maximumPoolSize: 10
    minimumIdle: 5
    idleTimeout: 300000
    maxLifetime: 1700000
    connectionTimeout: 30000
    fetch-timeout: 5000
Option Description
maximumPoolSize The most connections the plugin will open at once.
minimumIdle How many connections are kept open while idle.
idleTimeout How long, in milliseconds, an idle connection is kept before being closed.
maxLifetime How long, in milliseconds, a connection lives before being replaced. Keep it under your MySQL wait_timeout.
connectionTimeout How long, in milliseconds, to wait for a free connection before giving up.
fetch-timeout How long, in milliseconds, to wait for a player's data before treating it as unavailable.

circle-info

If players are told to wait while their data loads when they open a crate, raising fetch-timeout or maximumPoolSize is usually the fix.

Save the file and reload the plugin to apply the changes.

#Messages & Translations

Every message the plugin sends lives in the translation file rather than in config.yml, and language decides which one is loaded. Editing the wording, silencing a message, and running the plugin in another language are all on Languages & Translations.

#MiniMessage

On top of the usual & colour codes, text accepts MiniMessage tags for gradients, hover text and clickable links. It has its own page: Rich Text (MiniMessage).

My Cart
Spider

Your cart is empty

Looks like the spiders padded through here. Pick a plugin and it will show up here. Continue shopping