Войти или зарегистрироваться
  • Вы находитесь в сообществе Rubukkit. Мы - администраторы серверов Minecraft, разрабатываем собственные плагины и переводим на различные языки плагины наших коллег из других стран.

Обсудим Нубятник №5 - помощь по самым простым вопросам.

Всем привет! При запуске моего собственного плагины в консоли пишет это:

Код:
[08:55:41 WARN]: Legacy plugin Passport v0.2 does not specify an api-version.

Сам плагин работает как надо. Как это убрать?
Можешь игнорировать. В плагине просто не указано, что он подходит для версий 1.13+. Исправить не получится, если только ты не автор этого самого плагина.
 
Можешь игнорировать. В плагине просто не указано, что он подходит для версий 1.13+. Исправить не получится, если только ты не автор этого самого плагина.
Получится.
Пишем в plugin.yml строку
api-version: 1.16 (или на какой версии там у вас сервер?)
 
Это уже второй вопрос.
Строка "api-version" говорит серверу, что всё в порядке и варн не появляется.
Убрать предупреждение, чтобы наткнуться на краш плагина. Отличный план :D
 
Убрать предупреждение, чтобы наткнуться на краш плагина. Отличный план :D
Ок.
Собеседник, который задал вопрос - ни в коем случае не добавляй эту строку! Потому что некоторые считают это ошибкой и говорят, что нужно обязательно(!) проверить плагин. Вдруг чо не так?
 
Ок.
Собеседник, который задал вопрос - ни в коем случае не добавляй эту строку! Потому что некоторые считают это ошибкой и говорят, что нужно обязательно(!) проверить плагин. Вдруг чо не так?
Вот-вот! Лучше перебздеть, чем недобздеть хд
 
А на кой парится из-за 1 строчки? Она же, вроде, не спамит постоянно, не сильно отвлекает. Так на кой?
 
А на кой парится из-за 1 строчки? Она же, вроде, не спамит постоянно, не сильно отвлекает. Так на кой?
Он просто опровергал, что это может исправить лишь разработчик плагина - это не рекомендация к использованию.
 
Я разработчик этого плагина. Ошибка меня не сильно волнует, но хотелось бы ее убрать.
В plugin.yml добавил ту строку, стало хуже :whistle:
 
Столкнулся с проблемой, стоит плагин quest
Задача игрока добыть землю(примером) и получить награду
Но при выполнении награда даётся, но предметы не забираются
Как сделать так, то бв они забиралсиб
 
Я разработчик этого плагина. Ошибка меня не сильно волнует, но хотелось бы ее убрать.
В plugin.yml добавил ту строку, стало хуже :whistle:
А.. значит я неправильно понял. Поставь api-version: 1.13. Если какие-то ошибки - смотри используемые у себя материалы и обнови их.
 
Столкнулся с проблемой, стоит плагин quest
Задача игрока добыть землю(примером) и получить награду
Но при выполнении награда даётся, но предметы не забираются
Как сделать так, то бв они забиралсиб
Где-то должно настраиваться удаление предметов.
 
Не отображаться
префиксы , проблема возникла когда я плагин поставил на версию 1.16.1 и перестали отображаться префиксы.
Прикол в том, что значки глобального и локального чата отоброжаются
плагин chatty
Код:
# DO NOT DELETE THIS LINE
config-version: '2.0'

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

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

  # 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 cancels by moderation method
  # (instead of clearing recipients).
  completely-cancel: false

  # 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.
  #
  # !!! Chatty must be also installed in BungeeCord !!!
  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.
# *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 to chat to use it by default if symbol is not specified. Default: empty.
chats:
  local:
    enable: true
    format: '&f&l[L] &e{prefix} &f{player}{suffix}: {message}'
    range: 100
    cooldown: -1
    command: 'localchat'

  global:
    enable: true
    format: '&f&l[G] {prefix} &f{player}{suffix}: {message}'
    range: -1
    symbol: '!'
    cooldown: -1
    command: 'globalchat'

# * PRIVATE MESSAGING
pm:
  # Enables private messaging function.
  enable: true

  # Allows console to messaging players
  # and messaging players to console.
  allow-console: false

  # Format of messages
  #
  # Variables:
  # {sender-name}, {recipient-name} - nicknames of sender and recipient.
  # {sender-prefix}, {recipient-prefix} - prefixes of sender and recipient.
  # {sender-suffix}, {recipient-suffix} - suffixes of sender and recipient.
  # {message} - private message.
  format:
    recipient: '&7{sender-prefix}{sender-name} &6-> &7{recipient-prefix}{recipient-name}: &f{message}'
    sender: '&7{sender-prefix}{sender-name} &6-> &7{recipient-prefix}{recipient-name}: &f{message}'

  commands:
    msg:
      # Enables "/msg" command.
      # Permission: chatty.command.msg
      enable: true
      # Aliases for "/msg" command.
      aliases: ['message', 'pm', 'm', 'w']

    reply:
      # Enables "/reply" command.
      # Permission: chatty.command.reply
      enable: true
      # Aliases for "/reply" command.
      aliases: ['r']

    ignore:
      # Enables "/ignore" command.
      # Permission: chatty.command.ignore
      enable: true
      # Aliases for "/ignore" command.
      aliases: []

# * SPY
#
# Mode for spying for chat and private messages.
spy:
  enable: true

  # Spy-mode message format.
  format:
    # Permission: chatty.spy.<chat
    chat: '&6[Spy] &r{format}'

    # Permission: chatty.spy.pm
    #
    # Uses sender format of PM.
    # Supports variables:
    # {format}, {sender-prefix}, {sender-name}, {sender-suffix},
    # {recipient-prefix}, {recipient-name}, {recipient-suffix}, {message}
    pm: '&6[Spy] &r{format}'

# * JSON
#
# Chat formatting with additional interactive features.
#
# 1.7.10 and newer.
json:
  enable: false

  # Command or text that executes (by player) when you click on the player's name.
  #
  # *** You can use EITHER "command" OR "suggest" OR "link".
  #
  # Supports PlaceholderAPI.
  # You can use "{player}" variable here.
  command: /home

  # Command or text that suggests when you click on the player's name.
  #
  # *** You can use EITHER "command" OR "suggest" OR "link".
  #
  # Supports PlaceholderAPI.
  # You can use "{player}" variable here.
  suggest: '/msg {player} '

  # URL that opens when when you click on the player's name.
  #
  # You must use "http://" or "https://" prefix, else you will crash Minecraft client :D
  #
  # *** You can use EITHER "command" OR "suggest" OR "link".
  #
  # Supports PlaceholderAPI.
  # You can use "{player}" variable here.
  link: 'http://google.com'

  # Hover tooltip for the player's name.
  # Supports PlaceholderAPI.
  #
  # You can use "{player}" variable here.
  tooltip:
  - '&fPlayer &e{player}'
  - '&fThis tooltip supports'
  - '&fPlaceholderAPI placeholders!'

  # Swears hovers.
  #
  # Available properties:
  # tooltip, suggest
  #
  # Permission: chatty.swears.see
  swears:
    enable: true
    tooltip:
    - '&o{word}'
    - ''
    - '&eClick here to add word to whitelist.'
    suggest: /swears add {word}

  # Replacements for chat formats.
  #
  # You can replace some plain text with clickable parts
  # to make chat more interactive.
  #
  # Available properties:
  # text, tooltip, command, suggest, link.
  replacements:
    'Admin':
      # Original text.
      original: '&cAdmin'

      # New text.
      #
      # Supports PlaceholderAPI.
      # You can use "{player}" variable here.
      #
      # Remove this line, if you need original text.
      text: '&cAdmin'

      # Hover tooltip for the text.
      #
      # Supports PlaceholderAPI.
      #
      # You can use "{player}" variable here.
      tooltip:
      - '&cThis is admin.'
      - '&4&lBe afraid of him!'
      - ''
      - '&eClick here to see the server rules.'

      # *** You should use "command" OR "suggest-command" OR "link" and cannot combine.
      # Command that executes when you click on the text.
      #
      # Supports PlaceholderAPI.
      #
      # You can use "{player}" variable here.
      command: /rules

# * NOTIFICATIONS
#
# There are four types of notifications:
# via Chat, Title (1.8.8 and newer), ActionBar (1.8.8 and newer) and Advancements (1.12 and newer).
notifications:
  # Chat notifications.
  chat:
    # On/off chat notifications.
    enable: true

    # Notification lists.
    lists:
      # List "default".
      # Permission: chatty.notification.chat.default
      default:
        # Messages interval.
        time: 600

        # Messages prefix.
        prefix:

        # List of messages.
        messages:
        - '&4&l[Arbuzik &f&lChat] &fСтолкнулись с проблемой? Пропишите команду /help'

        # Permission for seeing notification.
        # Default: true
        permission: false

  # ActionBar notifications.
  # It's static notifications,
  # which changes the message with interval.
  #
  # Permission: chatty.notification.actionbar
  actionbar:
    # On/off ActionBar notifications.
    # Only 1.8+.
    enable: false

    # One message time.
    time: 60

    # Messages prefix.
    prefix: ''

    # Permission for seeing notification.
    # Default: true
    permission: false

  # Title notifications.
  title:
    # On/off title notifications.
    enable: true

    # Notification lists.
    lists:
      # List "default".
      # Permission: chatty.notification.title.default
      default:
        # Messages interval.
        time: 60

        # List of messages.
        messages:

        # Permission for seeing notification.
        # Default: true
        permission: false

  # Advancements (Achievements) notifications.
  advancements:
    # Advancements notifications.
    # Only 1.12 and newer.
    enable: false
    # Notification lists.
    lists:
      # List "default".
      # Permission: chatty.notification.advancements.default
      default:
        # Messages interval.
        time: 60

        # List of messages.
        messages:
        - icon: 'minecraft:diamond'
          header: '&bChatty v.2.18'
          footer: '&fThank you for using!'
        - icon: 'minecraft:gold_ingot'
          header: '&eChatty v.2.18'
          footer: '&fThank you for using!'

        # Permission for seeing notification.
        # Default: true
        permission: false

# * MODERATION
#
# Automatic chat moderation tools.
# Works with private messages.
moderation:
  caps:
    # On/off caps protection.
    # Bypass permission: chatty.moderation.caps
    enable: true

    # Minimal length of message to caps checking.
    length: 6

    # Minimal upper case percent for caps.
    percent: 80

    # On/off caps message blocking.
    # When false, message will be sent in lower case.
    block: true

  advertisement:
    # On/off advertisement protection.
    # Bypass permission: chatty.moderation.advertisement
    enable: true

    # Regular expressions for IP-addresses and websites.
    patterns:
      ip: '(?:\d{1,3}[.,-:;\/()=?}+ ]{1,4}){3}\d{1,3}'
      web: '[-a-zA-Zа-яА-Я0-9@:%_\+.~#?&//=]{2,256}\.[a-z]{2,4}\b(\/[-a-zA-Zа-яА-Я0-9@:%_\+~#?&//=]*)?'

    # On/off caps message blocking.
    # When false, advertisement will be replaced.
    block: true

    # Replacement for advertisement.
    replacement: '<advertisement>'

    # Whitelisted IP-addresses and sites.
    whitelist:
    - 'example.com'
    - 'vk.com'
    - 'google.com'
    - 'youtube.com'
    - 'yandex.ru'
    - '192.168.1.1'
    - '127.0.0.1'

  swear:
    # On/off swear protection.
    # Bypass permission: chatty.moderation.swear
    enable: false

    # On/off swear message blocking.
    # When false, swears will be replaced.
    block: true

    # Replacement for swears.
    replacement: '<swear>'
    # Files with swears is located at "Chatty/swears"

# * MISCELLANEOUS
miscellaneous:
  commands:
    # Used to switch default chat (when symbol is not specified): /chat <chat>
    # Permission: chatty.command.chat
    chat:
      enable: true
      aliases: ['chats', 'switchchat']

    # Clear chat for yourself: /clearchat
    # Permission: chatty.command.clearchat
    #
    # Clear chat for all: /clearchat all
    # Permission: chatty.command.clearchat.all
    clearchat:
      enable: true
      aliases: ['chatclear']

    # Change chat (and NametagEdit, if enabled) prefix
    # /prefix <player> <prefix>
    #
    # Permissions:
    # chatty.command.prefix
    # chatty.command.prefix.others
    prefix:
      enable: true

      # Automatically appends a substring after prefix.
      after-prefix: ' '

      # Limits prefix length (inclusive "after-prefix")
      length-limit:
        min: 3
        max: 16

      # Auto-applying in NametagEdit.
      # (Requires NameTagEdit plugin).
      auto-nte: false

    # Change chat (and NametagEdit, if enabled) suffix
    # /suffix <player> <suffix>
    #
    # Permissions:
    # chatty.command.suffix
    # chatty.command.suffix.others
    suffix:
      enable: true

      # Automatically appends a substring before suffix.
      before-suffix: ' '

      # Limits suffix length (inclusive "before-suffix")
      length-limit:
        min: 3
        max: 16

      # Auto-applying in NametagEdit.
      # (Requires NameTagEdit plugin).
      auto-nte: false

  # Change vanilla Minecraft messages.
  vanilla:
    join:
      enable: true

      # Set to '' if you want to make it hidden.
      message: '&e{prefix} {player}{suffix} &ejoined the server.'

      # Permission: chatty.misc.joinmessage
      # Default: true
      permission: false
    quit:
      enable: true

      # Set to '' if you want to make it hidden.
      message: '&e{prefix} {player}{suffix} &eleft the server.'

      # Permission: chatty.misc.quitmessage
      # Default: true
      permission: false
    death:
      enable: true

      # Set to '' if you want to make it hidden.
      message: '&e{prefix} {player}{suffix} &edied.'

      # Permission: chatty.misc.deathmessage
      # Default: true
      permission: false
 
Не отображаться
префиксы , проблема возникла когда я плагин поставил на версию 1.16.1 и перестали отображаться префиксы.
Прикол в том, что значки глобального и локального чата отоброжаются
плагин chatty
Код:
# DO NOT DELETE THIS LINE
config-version: '2.0'

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

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

  # 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 cancels by moderation method
  # (instead of clearing recipients).
  completely-cancel: false

  # 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.
  #
  # !!! Chatty must be also installed in BungeeCord !!!
  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.
# *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 to chat to use it by default if symbol is not specified. Default: empty.
chats:
  local:
    enable: true
    format: '&f&l[L] &e{prefix} &f{player}{suffix}: {message}'
    range: 100
    cooldown: -1
    command: 'localchat'

  global:
    enable: true
    format: '&f&l[G] {prefix} &f{player}{suffix}: {message}'
    range: -1
    symbol: '!'
    cooldown: -1
    command: 'globalchat'

# * PRIVATE MESSAGING
pm:
  # Enables private messaging function.
  enable: true

  # Allows console to messaging players
  # and messaging players to console.
  allow-console: false

  # Format of messages
  #
  # Variables:
  # {sender-name}, {recipient-name} - nicknames of sender and recipient.
  # {sender-prefix}, {recipient-prefix} - prefixes of sender and recipient.
  # {sender-suffix}, {recipient-suffix} - suffixes of sender and recipient.
  # {message} - private message.
  format:
    recipient: '&7{sender-prefix}{sender-name} &6-> &7{recipient-prefix}{recipient-name}: &f{message}'
    sender: '&7{sender-prefix}{sender-name} &6-> &7{recipient-prefix}{recipient-name}: &f{message}'

  commands:
    msg:
      # Enables "/msg" command.
      # Permission: chatty.command.msg
      enable: true
      # Aliases for "/msg" command.
      aliases: ['message', 'pm', 'm', 'w']

    reply:
      # Enables "/reply" command.
      # Permission: chatty.command.reply
      enable: true
      # Aliases for "/reply" command.
      aliases: ['r']

    ignore:
      # Enables "/ignore" command.
      # Permission: chatty.command.ignore
      enable: true
      # Aliases for "/ignore" command.
      aliases: []

# * SPY
#
# Mode for spying for chat and private messages.
spy:
  enable: true

  # Spy-mode message format.
  format:
    # Permission: chatty.spy.<chat
    chat: '&6[Spy] &r{format}'

    # Permission: chatty.spy.pm
    #
    # Uses sender format of PM.
    # Supports variables:
    # {format}, {sender-prefix}, {sender-name}, {sender-suffix},
    # {recipient-prefix}, {recipient-name}, {recipient-suffix}, {message}
    pm: '&6[Spy] &r{format}'

# * JSON
#
# Chat formatting with additional interactive features.
#
# 1.7.10 and newer.
json:
  enable: false

  # Command or text that executes (by player) when you click on the player's name.
  #
  # *** You can use EITHER "command" OR "suggest" OR "link".
  #
  # Supports PlaceholderAPI.
  # You can use "{player}" variable here.
  command: /home

  # Command or text that suggests when you click on the player's name.
  #
  # *** You can use EITHER "command" OR "suggest" OR "link".
  #
  # Supports PlaceholderAPI.
  # You can use "{player}" variable here.
  suggest: '/msg {player} '

  # URL that opens when when you click on the player's name.
  #
  # You must use "http://" or "https://" prefix, else you will crash Minecraft client :D
  #
  # *** You can use EITHER "command" OR "suggest" OR "link".
  #
  # Supports PlaceholderAPI.
  # You can use "{player}" variable here.
  link: 'http://google.com'

  # Hover tooltip for the player's name.
  # Supports PlaceholderAPI.
  #
  # You can use "{player}" variable here.
  tooltip:
  - '&fPlayer &e{player}'
  - '&fThis tooltip supports'
  - '&fPlaceholderAPI placeholders!'

  # Swears hovers.
  #
  # Available properties:
  # tooltip, suggest
  #
  # Permission: chatty.swears.see
  swears:
    enable: true
    tooltip:
    - '&o{word}'
    - ''
    - '&eClick here to add word to whitelist.'
    suggest: /swears add {word}

  # Replacements for chat formats.
  #
  # You can replace some plain text with clickable parts
  # to make chat more interactive.
  #
  # Available properties:
  # text, tooltip, command, suggest, link.
  replacements:
    'Admin':
      # Original text.
      original: '&cAdmin'

      # New text.
      #
      # Supports PlaceholderAPI.
      # You can use "{player}" variable here.
      #
      # Remove this line, if you need original text.
      text: '&cAdmin'

      # Hover tooltip for the text.
      #
      # Supports PlaceholderAPI.
      #
      # You can use "{player}" variable here.
      tooltip:
      - '&cThis is admin.'
      - '&4&lBe afraid of him!'
      - ''
      - '&eClick here to see the server rules.'

      # *** You should use "command" OR "suggest-command" OR "link" and cannot combine.
      # Command that executes when you click on the text.
      #
      # Supports PlaceholderAPI.
      #
      # You can use "{player}" variable here.
      command: /rules

# * NOTIFICATIONS
#
# There are four types of notifications:
# via Chat, Title (1.8.8 and newer), ActionBar (1.8.8 and newer) and Advancements (1.12 and newer).
notifications:
  # Chat notifications.
  chat:
    # On/off chat notifications.
    enable: true

    # Notification lists.
    lists:
      # List "default".
      # Permission: chatty.notification.chat.default
      default:
        # Messages interval.
        time: 600

        # Messages prefix.
        prefix:

        # List of messages.
        messages:
        - '&4&l[Arbuzik &f&lChat] &fСтолкнулись с проблемой? Пропишите команду /help'

        # Permission for seeing notification.
        # Default: true
        permission: false

  # ActionBar notifications.
  # It's static notifications,
  # which changes the message with interval.
  #
  # Permission: chatty.notification.actionbar
  actionbar:
    # On/off ActionBar notifications.
    # Only 1.8+.
    enable: false

    # One message time.
    time: 60

    # Messages prefix.
    prefix: ''

    # Permission for seeing notification.
    # Default: true
    permission: false

  # Title notifications.
  title:
    # On/off title notifications.
    enable: true

    # Notification lists.
    lists:
      # List "default".
      # Permission: chatty.notification.title.default
      default:
        # Messages interval.
        time: 60

        # List of messages.
        messages:

        # Permission for seeing notification.
        # Default: true
        permission: false

  # Advancements (Achievements) notifications.
  advancements:
    # Advancements notifications.
    # Only 1.12 and newer.
    enable: false
    # Notification lists.
    lists:
      # List "default".
      # Permission: chatty.notification.advancements.default
      default:
        # Messages interval.
        time: 60

        # List of messages.
        messages:
        - icon: 'minecraft:diamond'
          header: '&bChatty v.2.18'
          footer: '&fThank you for using!'
        - icon: 'minecraft:gold_ingot'
          header: '&eChatty v.2.18'
          footer: '&fThank you for using!'

        # Permission for seeing notification.
        # Default: true
        permission: false

# * MODERATION
#
# Automatic chat moderation tools.
# Works with private messages.
moderation:
  caps:
    # On/off caps protection.
    # Bypass permission: chatty.moderation.caps
    enable: true

    # Minimal length of message to caps checking.
    length: 6

    # Minimal upper case percent for caps.
    percent: 80

    # On/off caps message blocking.
    # When false, message will be sent in lower case.
    block: true

  advertisement:
    # On/off advertisement protection.
    # Bypass permission: chatty.moderation.advertisement
    enable: true

    # Regular expressions for IP-addresses and websites.
    patterns:
      ip: '(?:\d{1,3}[.,-:;\/()=?}+ ]{1,4}){3}\d{1,3}'
      web: '[-a-zA-Zа-яА-Я0-9@:%_\+.~#?&//=]{2,256}\.[a-z]{2,4}\b(\/[-a-zA-Zа-яА-Я0-9@:%_\+~#?&//=]*)?'

    # On/off caps message blocking.
    # When false, advertisement will be replaced.
    block: true

    # Replacement for advertisement.
    replacement: '<advertisement>'

    # Whitelisted IP-addresses and sites.
    whitelist:
    - 'example.com'
    - 'vk.com'
    - 'google.com'
    - 'youtube.com'
    - 'yandex.ru'
    - '192.168.1.1'
    - '127.0.0.1'

  swear:
    # On/off swear protection.
    # Bypass permission: chatty.moderation.swear
    enable: false

    # On/off swear message blocking.
    # When false, swears will be replaced.
    block: true

    # Replacement for swears.
    replacement: '<swear>'
    # Files with swears is located at "Chatty/swears"

# * MISCELLANEOUS
miscellaneous:
  commands:
    # Used to switch default chat (when symbol is not specified): /chat <chat>
    # Permission: chatty.command.chat
    chat:
      enable: true
      aliases: ['chats', 'switchchat']

    # Clear chat for yourself: /clearchat
    # Permission: chatty.command.clearchat
    #
    # Clear chat for all: /clearchat all
    # Permission: chatty.command.clearchat.all
    clearchat:
      enable: true
      aliases: ['chatclear']

    # Change chat (and NametagEdit, if enabled) prefix
    # /prefix <player> <prefix>
    #
    # Permissions:
    # chatty.command.prefix
    # chatty.command.prefix.others
    prefix:
      enable: true

      # Automatically appends a substring after prefix.
      after-prefix: ' '

      # Limits prefix length (inclusive "after-prefix")
      length-limit:
        min: 3
        max: 16

      # Auto-applying in NametagEdit.
      # (Requires NameTagEdit plugin).
      auto-nte: false

    # Change chat (and NametagEdit, if enabled) suffix
    # /suffix <player> <suffix>
    #
    # Permissions:
    # chatty.command.suffix
    # chatty.command.suffix.others
    suffix:
      enable: true

      # Automatically appends a substring before suffix.
      before-suffix: ' '

      # Limits suffix length (inclusive "before-suffix")
      length-limit:
        min: 3
        max: 16

      # Auto-applying in NametagEdit.
      # (Requires NameTagEdit plugin).
      auto-nte: false

  # Change vanilla Minecraft messages.
  vanilla:
    join:
      enable: true

      # Set to '' if you want to make it hidden.
      message: '&e{prefix} {player}{suffix} &ejoined the server.'

      # Permission: chatty.misc.joinmessage
      # Default: true
      permission: false
    quit:
      enable: true

      # Set to '' if you want to make it hidden.
      message: '&e{prefix} {player}{suffix} &eleft the server.'

      # Permission: chatty.misc.quitmessage
      # Default: true
      permission: false
    death:
      enable: true

      # Set to '' if you want to make it hidden.
      message: '&e{prefix} {player}{suffix} &edied.'

      # Permission: chatty.misc.deathmessage
      # Default: true
      permission: false
pex
Код:
groups:
  default:
    options:
      prefix: '&e[Крестьянин]'
      default: true
    permissions:
    - chatty.chat.global
    - chatty.chat.local
    - chatty.command.msg
    - modifyworld.*
schema-version: 1
 
Не отображаться
префиксы , проблема возникла когда я плагин поставил на версию 1.16.1 и перестали отображаться префиксы.
Прикол в том, что значки глобального и локального чата отоброжаются
плагин chatty
Код:
# DO NOT DELETE THIS LINE
config-version: '2.0'

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

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

  # 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 cancels by moderation method
  # (instead of clearing recipients).
  completely-cancel: false

  # 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.
  #
  # !!! Chatty must be also installed in BungeeCord !!!
  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.
# *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 to chat to use it by default if symbol is not specified. Default: empty.
chats:
  local:
    enable: true
    format: '&f&l[L] &e{prefix} &f{player}{suffix}: {message}'
    range: 100
    cooldown: -1
    command: 'localchat'

  global:
    enable: true
    format: '&f&l[G] {prefix} &f{player}{suffix}: {message}'
    range: -1
    symbol: '!'
    cooldown: -1
    command: 'globalchat'

# * PRIVATE MESSAGING
pm:
  # Enables private messaging function.
  enable: true

  # Allows console to messaging players
  # and messaging players to console.
  allow-console: false

  # Format of messages
  #
  # Variables:
  # {sender-name}, {recipient-name} - nicknames of sender and recipient.
  # {sender-prefix}, {recipient-prefix} - prefixes of sender and recipient.
  # {sender-suffix}, {recipient-suffix} - suffixes of sender and recipient.
  # {message} - private message.
  format:
    recipient: '&7{sender-prefix}{sender-name} &6-> &7{recipient-prefix}{recipient-name}: &f{message}'
    sender: '&7{sender-prefix}{sender-name} &6-> &7{recipient-prefix}{recipient-name}: &f{message}'

  commands:
    msg:
      # Enables "/msg" command.
      # Permission: chatty.command.msg
      enable: true
      # Aliases for "/msg" command.
      aliases: ['message', 'pm', 'm', 'w']

    reply:
      # Enables "/reply" command.
      # Permission: chatty.command.reply
      enable: true
      # Aliases for "/reply" command.
      aliases: ['r']

    ignore:
      # Enables "/ignore" command.
      # Permission: chatty.command.ignore
      enable: true
      # Aliases for "/ignore" command.
      aliases: []

# * SPY
#
# Mode for spying for chat and private messages.
spy:
  enable: true

  # Spy-mode message format.
  format:
    # Permission: chatty.spy.<chat
    chat: '&6[Spy] &r{format}'

    # Permission: chatty.spy.pm
    #
    # Uses sender format of PM.
    # Supports variables:
    # {format}, {sender-prefix}, {sender-name}, {sender-suffix},
    # {recipient-prefix}, {recipient-name}, {recipient-suffix}, {message}
    pm: '&6[Spy] &r{format}'

# * JSON
#
# Chat formatting with additional interactive features.
#
# 1.7.10 and newer.
json:
  enable: false

  # Command or text that executes (by player) when you click on the player's name.
  #
  # *** You can use EITHER "command" OR "suggest" OR "link".
  #
  # Supports PlaceholderAPI.
  # You can use "{player}" variable here.
  command: /home

  # Command or text that suggests when you click on the player's name.
  #
  # *** You can use EITHER "command" OR "suggest" OR "link".
  #
  # Supports PlaceholderAPI.
  # You can use "{player}" variable here.
  suggest: '/msg {player} '

  # URL that opens when when you click on the player's name.
  #
  # You must use "http://" or "https://" prefix, else you will crash Minecraft client :D
  #
  # *** You can use EITHER "command" OR "suggest" OR "link".
  #
  # Supports PlaceholderAPI.
  # You can use "{player}" variable here.
  link: 'http://google.com'

  # Hover tooltip for the player's name.
  # Supports PlaceholderAPI.
  #
  # You can use "{player}" variable here.
  tooltip:
  - '&fPlayer &e{player}'
  - '&fThis tooltip supports'
  - '&fPlaceholderAPI placeholders!'

  # Swears hovers.
  #
  # Available properties:
  # tooltip, suggest
  #
  # Permission: chatty.swears.see
  swears:
    enable: true
    tooltip:
    - '&o{word}'
    - ''
    - '&eClick here to add word to whitelist.'
    suggest: /swears add {word}

  # Replacements for chat formats.
  #
  # You can replace some plain text with clickable parts
  # to make chat more interactive.
  #
  # Available properties:
  # text, tooltip, command, suggest, link.
  replacements:
    'Admin':
      # Original text.
      original: '&cAdmin'

      # New text.
      #
      # Supports PlaceholderAPI.
      # You can use "{player}" variable here.
      #
      # Remove this line, if you need original text.
      text: '&cAdmin'

      # Hover tooltip for the text.
      #
      # Supports PlaceholderAPI.
      #
      # You can use "{player}" variable here.
      tooltip:
      - '&cThis is admin.'
      - '&4&lBe afraid of him!'
      - ''
      - '&eClick here to see the server rules.'

      # *** You should use "command" OR "suggest-command" OR "link" and cannot combine.
      # Command that executes when you click on the text.
      #
      # Supports PlaceholderAPI.
      #
      # You can use "{player}" variable here.
      command: /rules

# * NOTIFICATIONS
#
# There are four types of notifications:
# via Chat, Title (1.8.8 and newer), ActionBar (1.8.8 and newer) and Advancements (1.12 and newer).
notifications:
  # Chat notifications.
  chat:
    # On/off chat notifications.
    enable: true

    # Notification lists.
    lists:
      # List "default".
      # Permission: chatty.notification.chat.default
      default:
        # Messages interval.
        time: 600

        # Messages prefix.
        prefix:

        # List of messages.
        messages:
        - '&4&l[Arbuzik &f&lChat] &fСтолкнулись с проблемой? Пропишите команду /help'

        # Permission for seeing notification.
        # Default: true
        permission: false

  # ActionBar notifications.
  # It's static notifications,
  # which changes the message with interval.
  #
  # Permission: chatty.notification.actionbar
  actionbar:
    # On/off ActionBar notifications.
    # Only 1.8+.
    enable: false

    # One message time.
    time: 60

    # Messages prefix.
    prefix: ''

    # Permission for seeing notification.
    # Default: true
    permission: false

  # Title notifications.
  title:
    # On/off title notifications.
    enable: true

    # Notification lists.
    lists:
      # List "default".
      # Permission: chatty.notification.title.default
      default:
        # Messages interval.
        time: 60

        # List of messages.
        messages:

        # Permission for seeing notification.
        # Default: true
        permission: false

  # Advancements (Achievements) notifications.
  advancements:
    # Advancements notifications.
    # Only 1.12 and newer.
    enable: false
    # Notification lists.
    lists:
      # List "default".
      # Permission: chatty.notification.advancements.default
      default:
        # Messages interval.
        time: 60

        # List of messages.
        messages:
        - icon: 'minecraft:diamond'
          header: '&bChatty v.2.18'
          footer: '&fThank you for using!'
        - icon: 'minecraft:gold_ingot'
          header: '&eChatty v.2.18'
          footer: '&fThank you for using!'

        # Permission for seeing notification.
        # Default: true
        permission: false

# * MODERATION
#
# Automatic chat moderation tools.
# Works with private messages.
moderation:
  caps:
    # On/off caps protection.
    # Bypass permission: chatty.moderation.caps
    enable: true

    # Minimal length of message to caps checking.
    length: 6

    # Minimal upper case percent for caps.
    percent: 80

    # On/off caps message blocking.
    # When false, message will be sent in lower case.
    block: true

  advertisement:
    # On/off advertisement protection.
    # Bypass permission: chatty.moderation.advertisement
    enable: true

    # Regular expressions for IP-addresses and websites.
    patterns:
      ip: '(?:\d{1,3}[.,-:;\/()=?}+ ]{1,4}){3}\d{1,3}'
      web: '[-a-zA-Zа-яА-Я0-9@:%_\+.~#?&//=]{2,256}\.[a-z]{2,4}\b(\/[-a-zA-Zа-яА-Я0-9@:%_\+~#?&//=]*)?'

    # On/off caps message blocking.
    # When false, advertisement will be replaced.
    block: true

    # Replacement for advertisement.
    replacement: '<advertisement>'

    # Whitelisted IP-addresses and sites.
    whitelist:
    - 'example.com'
    - 'vk.com'
    - 'google.com'
    - 'youtube.com'
    - 'yandex.ru'
    - '192.168.1.1'
    - '127.0.0.1'

  swear:
    # On/off swear protection.
    # Bypass permission: chatty.moderation.swear
    enable: false

    # On/off swear message blocking.
    # When false, swears will be replaced.
    block: true

    # Replacement for swears.
    replacement: '<swear>'
    # Files with swears is located at "Chatty/swears"

# * MISCELLANEOUS
miscellaneous:
  commands:
    # Used to switch default chat (when symbol is not specified): /chat <chat>
    # Permission: chatty.command.chat
    chat:
      enable: true
      aliases: ['chats', 'switchchat']

    # Clear chat for yourself: /clearchat
    # Permission: chatty.command.clearchat
    #
    # Clear chat for all: /clearchat all
    # Permission: chatty.command.clearchat.all
    clearchat:
      enable: true
      aliases: ['chatclear']

    # Change chat (and NametagEdit, if enabled) prefix
    # /prefix <player> <prefix>
    #
    # Permissions:
    # chatty.command.prefix
    # chatty.command.prefix.others
    prefix:
      enable: true

      # Automatically appends a substring after prefix.
      after-prefix: ' '

      # Limits prefix length (inclusive "after-prefix")
      length-limit:
        min: 3
        max: 16

      # Auto-applying in NametagEdit.
      # (Requires NameTagEdit plugin).
      auto-nte: false

    # Change chat (and NametagEdit, if enabled) suffix
    # /suffix <player> <suffix>
    #
    # Permissions:
    # chatty.command.suffix
    # chatty.command.suffix.others
    suffix:
      enable: true

      # Automatically appends a substring before suffix.
      before-suffix: ' '

      # Limits suffix length (inclusive "before-suffix")
      length-limit:
        min: 3
        max: 16

      # Auto-applying in NametagEdit.
      # (Requires NameTagEdit plugin).
      auto-nte: false

  # Change vanilla Minecraft messages.
  vanilla:
    join:
      enable: true

      # Set to '' if you want to make it hidden.
      message: '&e{prefix} {player}{suffix} &ejoined the server.'

      # Permission: chatty.misc.joinmessage
      # Default: true
      permission: false
    quit:
      enable: true

      # Set to '' if you want to make it hidden.
      message: '&e{prefix} {player}{suffix} &eleft the server.'

      # Permission: chatty.misc.quitmessage
      # Default: true
      permission: false
    death:
      enable: true

      # Set to '' if you want to make it hidden.
      message: '&e{prefix} {player}{suffix} &edied.'

      # Permission: chatty.misc.deathmessage
      # Default: true
      permission: false
Используй не {prefix}, а %vault_prefix% - плейсхолдер PAPI.
Установка:
1. Установить PAPI
2. /papi ecloud download Vault
3. /papi reload
 
Последнее редактирование:
О моддинге, написании плагинов и прочем... Верно ли утверждение, что на 1.4.7, пусть и заморачиваясь больше, можно достичь всего того, чего можно достичь с 1.7.10? Привлекает оптимизация и минимум лишнего. Хотелось бы далее делать на 1.4.7, да лучше спросить... мало ли.
 

Поделиться этой страницей

Назад
Верх