Skip to content

Configuration

Mark edited this page Apr 7, 2018 · 4 revisions

Configuration

The AdamantineShield configuration file is split up into a series of blocks. This page lists the configuration options within each block, what they do, and what their default values are.

Database

This configuration block allows you to change the database connection.

Option Description Default
local-mode Whether to run the database in local mode (true) or to connect to a remote database (false) false
type Which type of database to use. Currently supported are 'mysql' and 'h2'. Other database types may or may not work. Is ignored when local-mode is true. "mysql"
hostname The hostname for the remote database. "127.0.0.1"
port The port for the remote database. 3306
database The name of the remote database. This database must be created manually. "AdamantineShield"
user The username for the remote database. "root"
pass The password for the remote database. ""

Logging

This configuration block allows you to toggle the different types of logging that AdamantineShield will perform.

Option Description Default
blocks Whether changes to blocks should be logged. true
chat Whether chat messages sent by players should be logged. false
chests Whether changes to the contents of chests should be logged. true
commands Whether commands sent by players should be logged. false
containers Whether changes to the contents of any type of container (including chests) should be logged. true
flow Whether the flow of liquids should be logged. NOTE: World generation will flood the database with this kind of log as water and lava settle. Leave this off until pre-generation is complete. false
mobs Whether block changes caused by animals and monsters should be logged. true
plant-growth Whether plant growth should be logged. false
tree-growth Whether tree growth from saplings should be logged. false

Lookup

This configuration block controls how the lookup functionality performs.

Option Description Default
lines-per-page The amount of lines to be shown per page in the lookup result. 15
default-radius The default lookup radius when none is specified. 10
max-radius The highest allowed lookup radius. 100

Purge

This configuration block controls how the database purge functionality performs.

Option Description Default
auto-purge Whether outdated logs should be automatically removed on server startup. true
auto-purge-days The amount of days until a log is considered outdated and is purged. 30

Threading

This configuration block controls AdamantineShield's asynchronous functionality.

Option Description Default
max-threads The amount of actions that can be performed concurrently. 4

AdamantineShield

Navigation

Setup

Usage

Clone this wiki locally