endstone.metrics.config

Classes

NameDescription
MetricsConfig

A simple config for bStats.

classMetricsConfig

MetricsConfig(file: Path, default_enabled: bool)

A simple config for bStats.

Methods

NameDescription
load_config

Reads the content of the config file.

save_default_config

Creates a config file with the default content.

setup_config

Creates the config file if it does not exist and read its content.

attrdid_exist_beforeproperty

did_exist_before: bool

attrenabledproperty

enabled: bool

attrlog_errors_enabledproperty

log_errors_enabled: bool

attrlog_response_status_text_enabledproperty

log_response_status_text_enabled: bool

attrlog_sent_data_enabledproperty

log_sent_data_enabled: bool

attrserver_uuidproperty

server_uuid: UUID

methload_config

load_config() -> None

Reads the content of the config file.

methsave_default_config

save_default_config() -> None

Creates a config file with the default content.

methsetup_config

setup_config() -> None

Creates the config file if it does not exist and read its content.

On this page