Files
Carbon/src/main/resources/config.yml
T

110 lines
4.0 KiB
YAML

# https://github.com/MiniDigger/MiniMessage/blob/feature/adventure/DOCS.md
# ^^^^ is outdated :(
# IMPORTANT: Use the <pre> tag around ALL user inputs.
# All <message> placeholders should be prefixed with <pre> and suffixed with </pre>
# Failure to do so may and likely will result in users being able to inject formatting in messages.
# All of the settings under this 'default' section can be applied to each channel individually to override these.
# These are provided as a way to configure default channel settings.
default:
switch-message: '<gray>You are now in <color><channel> <gray>chat!'
toggle-on-message: '<gray>You can now see <color><channel> <gray>chat!'
toggle-off-message: '<gray>You can no longer see <color><channel> <gray>chat!'
formats:
# Placeholders: username, displayname, channel, server, message, primaryrole
# Also supports PlaceholderAPI
discord-to-mc: '<gray>[<blue>Discord<gray>] <username><white>: <pre><message>'
staff: '<gray>{[%vault_prefix%<gray>]} %player_displayname% <gray>» <white><pre><message>'
default: '<gray>[%vault_prefix%<gray>] %player_displayname%<gray>: <white><pre><message>'
color: '#FFFFFF'
# Can players /toggle this channel and hide its messages?
ignorable: true
# Set to -1, comment out, or remove to disable distance checking
distance: -1
# Forces all other servers to use this server's formatting for this channel
forward-format: true
# Enables/disables cross server chat for this channel
should-bungee: true
# Determines if this channel should use the highest matching vault group found for formatting
first-matching-group: false
# Determines if the chat filter is enabled for this channel
filter-enabled: true
channels:
global:
name: 'Global'
aliases: 'global|g'
# Discord channel ID for bridging
id: -1
# Webhook URL for bridging
webhook: ''
# If this channel is the default channel
default: true
announcements:
name: 'Announcements'
formats:
default: '<gold>Broadcast: <yellow><pre><message></pre>'
ignorable: false
should-bungee: false
filters:
- 'lag'
- 'la[g]+'
filter-text: '****'
replacements:
'%shrug%': '¯\_(ツ)_/¯'
bot-token: ""
language:
ignoring-user: '<green>You are now ignoring <gold><player><green>!'
not-ignoring-user: '<green>You are no longer ignoring <gold><player><green>!'
is-now-shadow-muted: '<yellow>User <user> is now shadow muted!'
no-longer-shadow-muted: '<yellow>User <user> is no longer shadow muted!'
is-now-muted: '<yellow>User <user> is now muted!'
no-longer-muted: '<yellow>User <user> is no longer muted!'
reloaded: '<yellow>Chat config has been reloaded! Note that this does not reload channel configs!'
me: '<italic><dark_purple>*%player_displayname% <pre><message></pre>*</dark_purple></italic>'
message-to-other: '<green>[<gray>Me <gold>-> <gray><target><green>] <message>'
message-from-other: '<green>[<gray><sender> <gold>-> <gray>Me<green>] <message>'
no-reply-target: '<red>You have no one to reply to!'
# The following messages are not MiniMessage compatible
player-left: '%player_displayname% has left <server>!'
player-joined: '%player_displayname% has joined <server>!'
vote-received: '<name> has voted on <service>!'
cannot-use-channel: "You cannot use that channel!"
server-name: 'Server'
clear-chat-message: ""
clear-chat-amount: 100
item-link-placeholders:
- '[item]' # cursed placeholder do not use
- '%item%'
pings:
enabled: true
source: 'PLAYER'
sound: 'minecraft:entity.experience_orb.pickup'
volume: 10.0
pitch: 1.0
highlight: true # independent of the "enabled" option!
on-whisper: true # independent of the "enabled" option!
listeners:
join: true # sends join messages in discord
leave: true # sends leave messages in discord
death: true # sends death messages in discord
vote: false # sends vote messages in discord
storage:
type: JSON # JSON, MySQL
host: 'localhost'
port: 3306
database: 'SimpleChatData'
username: 'root'
password: 'password'