
Уже на протяжении 2-ух дней ломаю себе голову насчёт настройки чата в плагине CMI; уже понял всё, каждую функцию, и так далее, но не понял одного.
Как сделать разделение, между локальным, и глобальном чатом в данном плагине?
На данный момент настройки у меня таковы, работает только локальный чат, на " ! " не реагирует, также в локальный сообщения и идут.
Код:
# Used for simple chat messages. Optional variables: {displayName} {world} {prefix} {suffix} {group} {shout} {message}. Supporting PlaceHolderAPI variables like %player_server%
# ATTENTION! Dont use gradient colors for {message} variable, if you want to apply gradient for it, utilize GeneralMessageFormat section
GeneralFormat: '{prefix}&f{displayName} &e➭ &b{message}'
# Will define message format itself, this allows to have gradients in messages
# It NEEDS to contain {message} otherwise we will ignore this setup
# For 1.16+ servers you can use color gradients like '{#b3a28f>}{message}{#d7b8e6<}'
# You can have more than 2 colors in gradient. To define it repeat {message} variable. For example '{#b3a28f>}{message}{#5c6999<>}{message}{#d7b8e6<}'
# Use %cmi_user_chatcolor% to add players choosen chat color
GeneralMessageFormat: '{prefix}&f{displayName} &e➭ &b{message}'
Ranged:
# Defines range of regular messages to travel
# Set to -1 to disable range restriction
General: 200
# Defines range of shout messages to travel
# Shout messages should start with ! and player should have cmi.chat.shout permission
# GeneralRange should be enabled
# set to 0 to shout across all worlds, -1 to disable
Shout: 0
# Defines cost for each shout message
ShoutCost: 0
# List of message range limits
# Player count fallowed by range
# Player amount defines from how many we should use this range
Dynamic:
Use: false
Limits:
- 1-0
- 10-1000
- 20-500
- 30-400
- 40-300
- 50-200
# Prefix used to indicate that message should be sent to public chat instead of current players chat room
# Set it to empty field if you want this feature to be disabled
ChatRoomShout: '!'
# Time in seconds you want to keep chat rooms alive before removing them
# This only applies to empty rooms after last user leaves it
ChatRoomLife: 3600
# Defines suggested commands when you click on public, private and similar messages. [playerName], [playerDisplayName] and [playerNickName] can be used to include players name
ClickSuggestions:
pubmsg: '/msg [playerNickName] '
privmsg: '/msg [playerNickName] '
staffmsg: '/msg [playerNickName] '
helpop: '/msg [playerNickName] '
chatroom: '/msg [playerNickName] '
discord: '/msg [playerNickName] '
# Use numeric increments to separate groups from each other. If player has more than one, then line with higher number will be used
# Add as many lines as you need too
# cmi.chatgroup.[id] permnission node to use
# Permission example: cmi.chatgroup.2
Как сделать разделение, между локальным, и глобальном чатом в данном плагине?
На данный момент настройки у меня таковы, работает только локальный чат, на " ! " не реагирует, также в локальный сообщения и идут.
Код:
# Used for simple chat messages. Optional variables: {displayName} {world} {prefix} {suffix} {group} {shout} {message}. Supporting PlaceHolderAPI variables like %player_server%
# ATTENTION! Dont use gradient colors for {message} variable, if you want to apply gradient for it, utilize GeneralMessageFormat section
GeneralFormat: '{prefix}&f{displayName} &e➭ &b{message}'
# Will define message format itself, this allows to have gradients in messages
# It NEEDS to contain {message} otherwise we will ignore this setup
# For 1.16+ servers you can use color gradients like '{#b3a28f>}{message}{#d7b8e6<}'
# You can have more than 2 colors in gradient. To define it repeat {message} variable. For example '{#b3a28f>}{message}{#5c6999<>}{message}{#d7b8e6<}'
# Use %cmi_user_chatcolor% to add players choosen chat color
GeneralMessageFormat: '{prefix}&f{displayName} &e➭ &b{message}'
Ranged:
# Defines range of regular messages to travel
# Set to -1 to disable range restriction
General: 200
# Defines range of shout messages to travel
# Shout messages should start with ! and player should have cmi.chat.shout permission
# GeneralRange should be enabled
# set to 0 to shout across all worlds, -1 to disable
Shout: 0
# Defines cost for each shout message
ShoutCost: 0
# List of message range limits
# Player count fallowed by range
# Player amount defines from how many we should use this range
Dynamic:
Use: false
Limits:
- 1-0
- 10-1000
- 20-500
- 30-400
- 40-300
- 50-200
# Prefix used to indicate that message should be sent to public chat instead of current players chat room
# Set it to empty field if you want this feature to be disabled
ChatRoomShout: '!'
# Time in seconds you want to keep chat rooms alive before removing them
# This only applies to empty rooms after last user leaves it
ChatRoomLife: 3600
# Defines suggested commands when you click on public, private and similar messages. [playerName], [playerDisplayName] and [playerNickName] can be used to include players name
ClickSuggestions:
pubmsg: '/msg [playerNickName] '
privmsg: '/msg [playerNickName] '
staffmsg: '/msg [playerNickName] '
helpop: '/msg [playerNickName] '
chatroom: '/msg [playerNickName] '
discord: '/msg [playerNickName] '
# Use numeric increments to separate groups from each other. If player has more than one, then line with higher number will be used
# Add as many lines as you need too
# cmi.chatgroup.[id] permnission node to use
# Permission example: cmi.chatgroup.2