Configurations

⚙️ Configuration (config.yml)

The config.yml file allows you to customize every aspect of the plugin.

Chat Formats

This section defines the look of your chat messages based on a player's permission group. The format is chosen based on the player's primary group in LuckPerms.

YAML

chat-formats:
  default: "<#a2a9b5>%player_name%: <#bbc6d5>%message%"
  owner: "<#00AAFF>&lOWNER<reset> %player_name%: <#bbc6d5>%message%"

Hover & Click Events

Create interactive text that appears when hovering over a player's name. You can also enable clickable TPA requests.

hover-event:
  enabled: true
  lines:
    - "<#a2a9b5>%player_name%"
    - "&7&m----------"
    - "<#00fc00>$ &fMoney <#00fc00>%vault_eco_balance_formatted%"
    - "<#fc0000>🗡 &fKills <#fc0000>%statistic_player_kills%"
    - "<#fce300>⌚ &fPlaytime <#fce300>%statistic_time_played:hours%h %statistic_time_played:minutes%m"
    - "<#f97603>☠ &fDeaths <#f97603>%statistic_deaths%"
    - "<#a303f9>★ &fShards <#a303f9>0"
    - "&7&m----------"
    - "&7Click to teleport"

click-to-tpa:
  enabled: true

Moderation Suite

Each moderation module can be enabled or disabled individually.

  • Anti-Spam: Prevents players from sending messages too quickly.

  • Anti-Advertise: Blocks IP addresses and web links using regex patterns.

  • Anti-Curse: Blocks a customizable list of words.

anti-spam:
  enabled: true
  delay-seconds: 3

anti-advertise:
  enabled: true
  blocked-patterns:
    - "(?i)(\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3})"
    - "(?i)([a-z0-9-]+\\.(com|net|org|gg|store|xyz))"

anti-curse:
  enabled: true
  blocked-words:
    - "anal"
    - "anus"
    - "ass"
    # ... and so on

Messages

Customize all user-facing messages from the plugin.

messages:
  plugin-reloaded: "<#00AAFF>DonutChat has been reloaded."
  chat-cleared: "<#00AAFF>Chat has been cleared by %player%."
  chat-cleared-staff: "<#00AAFF>Chat has been cleared for all players!"
  no-permission: "<#F52727>You don't have permission to use this command!"
  anti-spam:
    warning: "<#F52727>Please don't spam the chat."
  anti-advertise:
    warning: "<#F52727>Please do not advertise here."
  anti-curse:
    warning: "<#F52727>Please watch your language."

Last updated