Database

Database configuration.

Sqlite

By default a sqlite database will be used. This option will store the data in a file located in the plugins configuraiton folder.

Example
#  __         ______     ______     ______
# /\ \       /\  ___\   /\  __ \   /\  ___\
# \ \ \____  \ \  __\   \ \  __ \  \ \  __\
#  \ \_____\  \ \_____\  \ \_\ \_\  \ \_\
#   \/_____/   \/_____/   \/_/\/_/   \/_/
#
# Author : Smudge

# --- Changing these values requires a proxy restart. ---
enabled: true
debugmode: false

# Database Connection.
type: SQLITE

# The maximum amount of history that will
# be saved in the database per player.
player_history_limit: 20

# The maximum number of messages that will
# be saved in the database per player.
message_limit: 100

Mongo

This option is recommended when you have multiple proxys and wish to join them. The data will be stored in the cloud determined by the connection string.

Example
#  __         ______     ______     ______
# /\ \       /\  ___\   /\  __ \   /\  ___\
# \ \ \____  \ \  __\   \ \  __ \  \ \  __\
#  \ \_____\  \ \_____\  \ \_\ \_\  \ \_\
#   \/_____/   \/_____/   \/_/\/_/   \/_/
#
# Author : Smudge

# --- Changing these values requires a proxy restart. ---
enabled: true
debugmode: false

# Database Connection.
type: MONGO

# You can find this string located in : Connect -> Drivers
# Ensure the end of this connection string contains:
# ?retryWrites=true&w=majority&uuidRepresentation=javaLegacy
connection_string: "mongodb+srv://user:password@name.mongodb.net/?retryWrites=true&w=majority&uuidRepresentation=javaLegacy"

# The name of the database within the database.
database_name: "Leaf"

# The maximum amount of history that will
# be saved in the database per player.
player_history_limit: 20

# The maximum number of messages that will
# be saved in the database per player.
message_limit: 100