Skip to main content

config.yml

The configuration file for Nexal Example. Located at plugins/NexalExample/config.yml.

config.yml
# ══════════════════════════════════════════════════════════
# Nexal Example Configuration
# ══════════════════════════════════════════════════════════

# ──────────────────────────────────────────────────────────
# STORAGE
# ──────────────────────────────────────────────────────────
# type: "json" keeps all data in data.json in this folder.
# "sql" uses a MySQL or MariaDB database.
#
# Moving data between them:
# 1. /example admin export
# 2. change type below
# 3. restart the server
# 4. /example admin import
storage:
type: json

# Only used when type is "sql"
sql:
host: localhost
port: 3306
database: minecraft
username: root
password: ""

# ──────────────────────────────────────────────────────────
# SETTINGS
# ──────────────────────────────────────────────────────────
# These can also be changed in-game with /example admin.
settings:
# Whether players can use /example info
enabled: true

# Seconds a player must wait between uses of /example info (0 = no cooldown)
cooldown: 5

Configuration Options​

Below is a reference of the main configuration sections:

storage​

══════════════════════════════════════════════════════════
Nexal Example Configuration
══════════════════════════════════════════════════════════
──────────────────────────────────────────────────────────
STORAGE
──────────────────────────────────────────────────────────
type: "json" keeps all data in data.json in this folder.
"sql" uses a MySQL or MariaDB database.
Moving data between them:
1. /example admin export
2. change type below
3. restart the server
4. /example admin import

settings​

──────────────────────────────────────────────────────────
SETTINGS
──────────────────────────────────────────────────────────
These can also be changed in-game with /example admin.