Вопрос Как сделать 1 глобальный чат на несколько серверов в прокси.

Ядро
PufferFish

Avtaritetus

Пользователь
Сообщения
25
Плагин
Chatty
Ядро сервера
  1. Paper
  2. PufferFish
Версия сервера
  1. 1.21
Память сервера ОЗУ
10Gb
Ссылка
https://www.spigotmc.org/resources/chatty-lightweight-universal-bukkit-chat-system-solution-1-7-10-1-20.59411/
Нужно связать 2 сервера используя плагин chatty.

bungeecord: true
global:
enable: true
format: '{prefix} {#BD00FF}{player}: §7 {message}'
range: -3
symbol: '!'
cooldown: -1
permission: false
 
Приветствую.
Когда ты создаёшь глобальный чат, у тебя есть пункт range, который должен быть установлен на -3.
Не забывайте также установить плагин Chatty на BungeeCord и остальные сервера, которые есть и выставить одинаковые значения в конфиге.

Пример:

YAML:
# DO NOT DELETE THIS LINE
config-version: '2.0'

# ******************************************************
# * Chatty
#   Universal chat-system for Bukkit-server.
#
#   Creator: MrBrikster
#
# * Optional dependencies:
#   Vault, PlaceholderAPI, NameTagEdit.
# ******************************************************

# * GENERAL
general:
  # Plugin localization.
  #
  # en - English.
  # ru - Russian.
  # de - German.
  # zh_CN - Simplified Chinese
  locale: ru

  # Chat listener priority.
  # Possible values:
  # lowest, low, normal, high, highest.
  priority: low

  # Chat logging in "plugins/Chatty/logs/".
  log: true

  # Completely cancels chat events,
  # if it cancelled by moderation method
  # (instead of clearing recipients).
  completely-cancel: false

  # Keep recipients list from previous listeners.
  # Useful if you have some plugins, that changes recipients list, and Chatty ignores it
  # (for example, Chatty may corrupt "/ignore" command of EssentialsX).
  #
  # Default: true
  keep-old-recipients: true

  # Hides vanished players from recipients (and sends "no-recipients" message when all recipients are vanished)
  # Supports EssentialsX, SuperVanish, PremiumVanish, VanishNoPacket etc.
  # Default: false
  hide-vanished-recipients: true

  # Storage player data mode.
  # true - data will store by UUIDs.
  # false - data will store by nicknames.
  uuid: false

  # Enables support for "-3" chat range.
  # Messages from that chats will be sent to all BungeeCord servers with Chatty.
  #
  # Notes:
  # * Console logs will not prints on empty BungeeCord servers (non-fixable)
  # * So Chatty send message to another server, there must be chat with the same name and range -3.
  bungeecord: false

# * CHATS
#
# On the server there can be different chats with different settings,
# whether it's donate-chat, admin-chat, or the usual local and global.
#
# Permissions:
# chatty.chat.<chat> - permission for both writing and seeing messages.
# chatty.chat.<chat>.write - permission for writing messages.
# chatty.chat.<chat>.see - permission for seeing messages.
#
# Chat has the following options:
# *enable*       - on/off chat.
# *display-name* - name of chat, displaying in placeholders and locale messages. Default: regular name of chat.
# *format*       - chat format string.
# *range*        - chat range. -1 to world-wide chat, -2 to server-wide, -3 to BungeeCord-wide chat.
# *symbol*       - character from which message should begin.
# *cooldown*     - message cooldown in seconds (bypass permission - chatty.cooldown.<chat>).
# *money*        - message price (depends on Vault).
# *permission*   - check permissions for this chat? Default: true.
# *command*      - Command that is used to switch chat to use it by default if symbol is not specified OR to write at chat: /<command> <message>. Default: empty.
# *aliases*      - Aliases for command. Default: empty.
chats:
  global:
    enable: true
    display-name: 'Global'
    format: '<ваш_формат>'
    range: -3
    symbol: '!'
    cooldown: -1
    command: 'globalchat'
    aliases: [ 'gchat' ]

Надеюсь, что я вам чем-то помог.
Приятной разработки вашего проекта, удачи!
 
Приветствую.
Когда ты создаёшь глобальный чат, у тебя есть пункт range, который должен быть установлен на -3.
Не забывайте также установить плагин Chatty на BungeeCord и остальные сервера, которые есть и выставить одинаковые значения в конфиге.

Пример:

YAML:
# DO NOT DELETE THIS LINE
config-version: '2.0'

# ******************************************************
# * Chatty
#   Universal chat-system for Bukkit-server.
#
#   Creator: MrBrikster
#
# * Optional dependencies:
#   Vault, PlaceholderAPI, NameTagEdit.
# ******************************************************

# * GENERAL
general:
  # Plugin localization.
  #
  # en - English.
  # ru - Russian.
  # de - German.
  # zh_CN - Simplified Chinese
  locale: ru

  # Chat listener priority.
  # Possible values:
  # lowest, low, normal, high, highest.
  priority: low

  # Chat logging in "plugins/Chatty/logs/".
  log: true

  # Completely cancels chat events,
  # if it cancelled by moderation method
  # (instead of clearing recipients).
  completely-cancel: false

  # Keep recipients list from previous listeners.
  # Useful if you have some plugins, that changes recipients list, and Chatty ignores it
  # (for example, Chatty may corrupt "/ignore" command of EssentialsX).
  #
  # Default: true
  keep-old-recipients: true

  # Hides vanished players from recipients (and sends "no-recipients" message when all recipients are vanished)
  # Supports EssentialsX, SuperVanish, PremiumVanish, VanishNoPacket etc.
  # Default: false
  hide-vanished-recipients: true

  # Storage player data mode.
  # true - data will store by UUIDs.
  # false - data will store by nicknames.
  uuid: false

  # Enables support for "-3" chat range.
  # Messages from that chats will be sent to all BungeeCord servers with Chatty.
  #
  # Notes:
  # * Console logs will not prints on empty BungeeCord servers (non-fixable)
  # * So Chatty send message to another server, there must be chat with the same name and range -3.
  bungeecord: false

# * CHATS
#
# On the server there can be different chats with different settings,
# whether it's donate-chat, admin-chat, or the usual local and global.
#
# Permissions:
# chatty.chat.<chat> - permission for both writing and seeing messages.
# chatty.chat.<chat>.write - permission for writing messages.
# chatty.chat.<chat>.see - permission for seeing messages.
#
# Chat has the following options:
# *enable*       - on/off chat.
# *display-name* - name of chat, displaying in placeholders and locale messages. Default: regular name of chat.
# *format*       - chat format string.
# *range*        - chat range. -1 to world-wide chat, -2 to server-wide, -3 to BungeeCord-wide chat.
# *symbol*       - character from which message should begin.
# *cooldown*     - message cooldown in seconds (bypass permission - chatty.cooldown.<chat>).
# *money*        - message price (depends on Vault).
# *permission*   - check permissions for this chat? Default: true.
# *command*      - Command that is used to switch chat to use it by default if symbol is not specified OR to write at chat: /<command> <message>. Default: empty.
# *aliases*      - Aliases for command. Default: empty.
chats:
  global:
    enable: true
    display-name: 'Global'
    format: '<ваш_формат>'
    range: -3
    symbol: '!'
    cooldown: -1
    command: 'globalchat'
    aliases: [ 'gchat' ]

Надеюсь, что я вам чем-то помог.
Приятной разработки вашего проекта, удачи!

а почему bungeecord: false?
 
Назад
Сверху Снизу