DebugCategories

Reads a debug switch written as text.

Shared by both platforms so that debug: velocity,protocol in config.yml and -Dlunaticchat.debug=velocity,protocol on the proxy mean the same thing. A grammar owned by one side would drift from the other the first time a category was added.

Types

Link copied to clipboard
data class Parsed(val enabled: Boolean, val categories: Set<DebugCategory>, val unknown: List<String>)

What a debug switch asked for.

Properties

Link copied to clipboard
const val ALL: String

The word that stands for every category at once, wherever a category may be named.

Functions

Link copied to clipboard

Reads a whole switch: a boolean spelling, or a comma-separated list of category keys.

Link copied to clipboard

Reads category keys that arrived already separated, as config.yml's categories: list does.