Config.yml
Our config is very simple but it can customize a lot the chats. This section will not talk about the first and second section: licence and database. Check here to get more information.
DiscordSRV Section
settings:
write-discord-onlylink: true
use-custom-format-discord: true
custom-format-discord: "%chatprefix% &b[%userprefix%&b] &b[%groupprefix%&b] &7%name% &8• %chatcolor%%chatmessage% &7(Discord)"
This category will manage the DiscordSRV hook. If you don't use it you can skip.
write-discord-onlylink: If true only linked-account can write on Discord text channels plugged with ChatPlus.
use-custom-format-discord: If true when a player send a message to a chat from Discord it will use the below custom discord format. If false it will use normal format.
custom-format-discord: Here you can change the discord format.
Format Section
chats:
formats:
staff: "%chatprefix% &7Staffer(x) &8• %chatcolor%%chatmessage%"
default: "%chatprefix% &b[%userprefix%&b] &b[%groupprefix%&b] &7%name% &8• %chatcolor%%chatmessage%"
This category is dedicated to in-game-chat formats.
default: Is the format that will uses every chat if not configured below.
Now you can, as staff string, add with the format:
<ChatId>: <format>
every chat you want. That chats will automatic take that format not the default one. Like:
chats:
formats:
staff: "%chatprefix% &7Staffer(x) &8• %chatcolor%%chatmessage%"
default: "%chatprefix% &b[%userprefix%&b] &b[%groupprefix%&b] &7%name% &8• %chatcolor%%chatmessage%"
factions_teama: "%chatprefix% &7%name% &8• %chatmessage%"
gang: "%chatprefix% &7Operator &8• %chatcolor%%chatmessage%"
All Placeholders of Formats
Here you can find all placeholders that you can use in the format settings.
%chatprefix% - The prefix you set on chat creation.
%userprefix% - The prefix of the player that send the message.
%groupprefix% - The prefix of group of the player that send the message.
%name% - The name or the custom name of the player that send the message.
%chatcolor% - That color you set on chat creation.
%chatmessage% - The message sended by the player.
Last updated