-
Notifications
You must be signed in to change notification settings - Fork 0
Configuration
SlamTheHam edited this page Jan 26, 2026
·
2 revisions
SimpleColor creates a config.json file in its data directory on first run.
Location: plugins/SimpleColor/config.json
{
"chatParsingEnabled": true,
"chatFormat": "{player}: {message}"
}- 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
}- 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)
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)
The configuration is loaded on server start. To reload without restarting:
SimpleColor.getInstance().reloadConfig();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();