Skip to content

Configuration

SlamTheHam edited this page Jan 26, 2026 · 2 revisions

SimpleColor creates a config.json file in its data directory on first run.

Configuration File

Location: plugins/SimpleColor/config.json

{
  "chatParsingEnabled": true,
  "chatFormat": "{player}: {message}"
}

Options

chatParsingEnabled

  • Type: Boolean
  • Default: true
  • Description: Enable or disable automatic color code parsing in chat messages.

When enabled, player chat messages are automatically parsed for color codes (subject to permissions).

{
  "chatParsingEnabled": true
}

chatFormat

  • Type: String
  • Default: "{player}: {message}"
  • Description: The format for chat messages.

Available placeholders:

  • {player} - The player's name
  • {message} - The player's message (after color parsing)

Example Formats

Default:

{
  "chatFormat": "{player}: {message}"
}

Output: PlayerName: Hello world!

Bracketed:

{
  "chatFormat": "[{player}] {message}"
}

Output: [PlayerName] Hello world!

Colored:

{
  "chatFormat": "&7{player} &8>> &f{message}"
}

Output: PlayerName >> Hello world! (with colors)

Server Style:

{
  "chatFormat": "&6{player}&7: {message}"
}

Output: PlayerName: Hello world! (gold name, gray colon)

Reloading Configuration

The configuration is loaded on server start. To reload without restarting:

SimpleColor.getInstance().reloadConfig();

Programmatic Access

import org.slamstudios.simplecolor.SimpleColor;
import org.slamstudios.simplecolor.SimpleColorConfig;

// Get config
SimpleColorConfig config = SimpleColor.getConfig();

// Check if chat parsing is enabled
boolean enabled = config.isChatParsingEnabled();

// Get chat format
String format = config.getChatFormat();

Clone this wiki locally