1. Вы находитесь в сообществе Rubukkit. Мы - администраторы серверов Minecraft, разрабатываем собственные плагины и переводим на различные языки плагины наших коллег из других стран.
    Скрыть объявление
Скрыть объявление
В преддверии глобального обновления, мы проводим исследования, которые помогут нам сделать опыт пользования форумом ещё удобнее. Помогите нам, примите участие!

Помогите Не работает анонсер в плагине SunLight

Тема в разделе "Помощь", создана пользователем JlEC, 18 фев 2024.

  1. Автор темы
    JlEC

    JlEC Активный участник Пользователь

    Баллы:
    61
    Имя в Minecraft:
    JlEC_
    Во-первых, анонсер отказывается отправлять сообщения в чат, что бы я не делал, ничего не меняется, вот конфиги, они от разработчика, голые, пробовал так, не работает, возможно, где-то есть ошибка.

    Код:
    Random_Order: true
    Interval: 10
    Messages:
      info1:
        Groups:
          - default
          - mag
          - berserk
          - trader
        Text:
          - '&7'
          - '#084cfb&m #1155fb&m #195efb&m #2266fb&m #2b6ffb&m #3378fc&m #3c81fc&m #458afc&m #4d92fc&m #569bfc&m #5fa4fc&m #68adfc&m #70b5fc&m #79befc&m #82c7fc&m #8ad0fd&m #93d9fd&m #9ce1fd&m #a4eafd&m #adf3fd&m &c   *   #adf3fd&m #a4eafd&m #9ce1fd&m #93d9fd&m #8ad0fd&m #82c7fc&m #79befc&m #70b5fc&m #68adfc&m #5fa4fc&m #569bfc&m #4d92fc&m #458afc&m #3c81fc&m #3378fc&m #2b6ffb&m #2266fb&m #195efb&m #1155fb&m #084cfb&m &7'
          - '  #084cfbG#1458fbe#2064fbt #2b70fba#377cfcw#4388fce#4f94fcs#5ba0fco#66abfcm#72b7fce #7ec3fcr#8acffda#95dbfdn#a1e7fdk#adf3fds #adf3fdo#9de2fdn #8cd2fdo#7cc1fcu#6bb0fcr #5ba0fcs#4a8ffct#3a7efco#296dfbr#195dfbe#084cfb!'
          - '&b    http://store.samplecraft.com/'
          - '#084cfb&m #1155fb&m #195efb&m #2266fb&m #2b6ffb&m #3378fc&m #3c81fc&m #458afc&m #4d92fc&m #569bfc&m #5fa4fc&m #68adfc&m #70b5fc&m #79befc&m #82c7fc&m #8ad0fd&m #93d9fd&m #9ce1fd&m #a4eafd&m #adf3fd&m &c   *   #adf3fd&m #a4eafd&m #9ce1fd&m #93d9fd&m #8ad0fd&m #82c7fc&m #79befc&m #70b5fc&m #68adfc&m #5fa4fc&m #569bfc&m #4d92fc&m #458afc&m #3c81fc&m #3378fc&m #2b6ffb&m #2266fb&m #195efb&m #1155fb&m #084cfb&m &7'
          - '&7'

    Код:
    # Sets the chat event priority. https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/event/EventPriority.html
    # Change this only if you're experiencing compatibility issues with other plugins.
    Chat_Event_Priority: HIGH
    # When 'true', allows you to create Json elements for the chat formations.
    # https://github.com/nulli0n/NexEngine-spigot/wiki/Language-Config#json-formatting
    # When disabled, all Json content will be converted to regular text.
    Chat_JSON_Enabled: true
    Settings:
      # A list of commands to apply colors for.
      Color_Commands:
      - reply
      - tell
    # When enabled together with JSON option, will duplicate player's messages to server console.
    # Enable this, if you don't see chat messages in console with JSON enabled.
    # Disable this, if you see duplicated chat messages in console with JSON enabled.
    Chat_JSON_Console_Echo: true
    # When 'true' completely disables Chat Reports system from the server.
    # As well as disables join notifications about messages verification.
    Disable_Chat_Reports: true
    # When 'true', disables the chat channel join messages when players joined the server.
    Silent_Channel_Join_On_Login: false
    Modules:
      # When 'true', enables custom Join and Quit messages.
      Join_Quit_Messages: false
      # When 'true', enables custom Death messages.
      Death_Messages: false
      # When 'true', enables Announcer that broadcasts custom messages with certain intervals.
      Announcer: true
    # In this section you can set custom format for each Permision Group
    # If player has multiple permission groups, format with the highest priority will be used.
    # (!) IMPORTANT: If you remove 'default' format and no other format will be available for player(s), no message will be sent!
    # JSON Formatting is allowed here, please see: https://github.com/nulli0n/NexEngine-spigot/wiki/Language-Config#json-formatting
    # PlaceholderAPI is supported here.
    # Internal Placeholders:
    # - %message% - Player message.
    # - %player_name% - Player real name.
    # - %player_display_name% - Player display (custom) name.
    # - %player_prefix% - Player prefix (from Permissions plugin)
    # - %player_suffix% - Player suffix (from Permissions plugin)
    # - %player_world% - Player world name.
    # Placeholders to use in Chat Channel Format:
    # - %format_player_name% - This 'Name' format.
    # - %format_player_message% - This 'Message' format.
    # - %format_player_color% - This 'Default_Color' color.
    Format:
      owner:
        Priority: 100
        Name: '<? show_text:"&fThis player is the server #c1fd9fOwner" ?>%player_prefix%</><? show_text:"#fe9e3ePlayer: #fbb671%player_name% #fe9e3eNickname: #fbb671%player_display_name%<newline>#fe9e3eBalance: #fbb671$%vault_eco_balance_formatted%<newline>&7<newline>&7(Click to send private message)" suggest_command:"/tell %player_name%" ?>%player_display_name%</>%player_suffix%'
        Message: '<? show_text:"&7&oMessage was sent at: #c1fd9f%localtime_time_HH:MM:ss%" ?>%format_player_color%%message%</>'
        Default_Color: gray
      default:
        Priority: 0
        Name: '%player_prefix%%player_display_name%'
        Message: '%format_player_color%%message%'
        Default_Color: gray
    Private_Messages:
      # Enables Private Messages feature.
      # This option will add two commands: /tell and /reply (you can change aliases in SunLight commands.yml)
      Enabled: false
      Format:
        # Sets the format for incoming private messages.
        # Use %message% placeholder for a message text.
        # You can use 'Player' placeholders: https://github.com/nulli0n/NexEngine-spigot/wiki/Internal-Placeholders
        # JSON and Message Options are allowed: https://github.com/nulli0n/NexEngine-spigot/wiki/Language-Config#json-formatting
        Incoming: <! sound:"BLOCK_NOTE_BLOCK_BELL" prefix:"false" !><? show_text:"&bClick to reply!" suggest_command:"/tell %player_name%" ?>&d[Private] &f%player_display_name% &7whispers:&7 %message%</>
        # Sets the format for outgoing private messages.
        # Use %message% placeholder for a message text.
        # You can use 'Player' placeholders: https://github.com/nulli0n/NexEngine-spigot/wiki/Internal-Placeholders
        # JSON and Message Options are allowed: https://github.com/nulli0n/NexEngine-spigot/wiki/Language-Config#json-formatting
        Outgoing: <! sound:"UI_BUTTON_CLICK" prefix:"false" !>&d[Private] &7whisper to &f%player_display_name%:&7 %message%
    Mentions:
      # When 'true', enables the Mentions feature.
      # Mentions allows you to attract attention of certain players or players with certain ranks when typing their name/rank in chat.
      # (!) IMPORTANT: You players must have sunlight.chat.mention.* permission or sunlight.chat.mention.player.[playerName] or sunlight.chat.mention.special.[mentionName] permissions.
      Enabled: false
      # Sets the maximum amount of mentions per player message.
      # When there is more mentions than max allowed, all other mentions will have no effect.
      # Set this to -1 for unlimit.
      Max_Per_Message: 3
      # Sets per player cooldown for the same mentions.
      # When mention is on cooldown, it will have no effect.
      # Set this to -1 to disable.
      Cooldown: 15
      # A prefix that mention have to be followed by to work.
      # With default '@' mention will be: '@UserName'.
      Prefix: '@'
      # A text that will replace mention if player is valid.
      # You can use 'Player' placeholders: https://github.com/nulli0n/NexEngine-spigot/wiki/Internal-Placeholders
      # JSON and Message Options are allowed: https://github.com/nulli0n/NexEngine-spigot/wiki/Language-Config#json-formatting
      # Use %format_player_color% placeholder to keep the original message color after mention format.
      # PlaceholderAPI is supported here.
      Format: '&a@%player_display_name%%format_player_color%'
      # This is the message, that will be sent to mentioned player(s).
      # You can use 'Player' placeholders: https://github.com/nulli0n/NexEngine-spigot/wiki/Internal-Placeholders
      # You can use all Lang Message features: https://github.com/nulli0n/NexEngine-spigot/wiki/Language-Config
      # PlaceholderAPI is supported here.
      Notify: <! type:"titles:20:50:20" sound:"BLOCK_NOTE_BLOCK_BELL" !>&a&lMentioned!\n&a%player_display_name%&7 mentioned you in chat.
      # A list of custom mentions, that can be applied to multiple players based on their Permission Group.
      # Use asterisk (*) to include all permission groups.
      # Keys are mentions. By default it's '@all' and '@admin'.
      # You must have Vault installed for this feature to work.
      # JSON Formatting is allowed here, please see: https://github.com/nulli0n/NexEngine-spigot/wiki/Language-Config#json-formatting
      # Placeholders:
      # - %format_player_color% - Player default message color from 'Format' settings.
      Special:
        admin:
          Format: '&c@Admin%format_player_color%'
          Affected_Groups:
          - admin
        all:
          Format: '&b@All%format_player_color%'
          Affected_Groups:
          - '*'
    SpyOps:
      # Enables the SpyOps feature.
      # It will add a command to enable spy mode for Private Messages, Commands and regular Chat messages.
      Enabled: false
      # Sets the format for each Spy Mode.
      # Use %message% placeholder for a message text.
      # For 'SOCIAL' Mode, you can use %player_target% placeholder.
      # For 'CHAT' Mode, you can use 'Channel' placeholders.
      # You can use 'Player' placeholders: https://github.com/nulli0n/NexEngine-spigot/wiki/Internal-Placeholders
      # JSON format is allowed: https://github.com/nulli0n/NexEngine-spigot/wiki/Language-Config#json-formatting
      Format:
        SOCIAL: '&c[SocialSpy] &4%player_name% &7-> &4%player_target%&7: &c%message%'
        COMMAND: '&c[CommandSpy] &4%player_name% &7executed a command: &c%message%'
        CHAT: '&c[ChatSpy] &7[&f%channel_name%&7] &4%player_name%&7: &c%message%'
    Anti_Caps:
      # When 'true', enables the AntiCaps auto-moderation feature.
      # This feature will prevent players from sending full caps messages.
      Enabled: false
      # Minimal message length for the AntiCaps feature to check it.
      # This option might be useful to prevent trigger AntiCaps on messages like 'LOL', 'OMG', etc.
      Message_Length_Min: 10
      # Minimal percentage of upper-case letters in a message for AntiCaps to handle it.
      # This option might be useful to prevent trigger AntiCaps on messages with many upper-case letters without bad intentions.
      Upper_Letters_Percent_Min: 75
      # A list of commands, that will be checked by AntiCaps for voilations.
      # This option might be useful to prevent caps messages in private messages, broadcasts, etc.
      # NOTE: You need to provide only ONE alias for each command. Example: If you have a /tell command with [/t, /msg, /w] aliases, you can provide only one of them.
      Affected_Commands:
      - me
      - broadcase
      - reply
      - tell
      # A list of words, that will be skipped when AntiCaps is checking a message.
      # These words won't count into message length and upper-case letters amount.
      Ignored_Words:
      - DAMN
      - ROFL
      - AHAHA
      - OMG
      - LOL
      - WTF
      - IMHO
      - WOW
    Anti_Spam:
      # When 'true', enables the AntiSpam auto-moderation feature.
      # This feature will prevent players from spamming (the same) messages/commands too fast.
      Enabled: false
      Block_Similar_Messages:
        # How many (in percent) previous and current player message/command should match each other for the AntiSpam to trigger?
        # Set this to 0 to disable.
        Percentage: 90.0
        # For how long (in seconds) previous player message/command will be stored to compare it with next ones.
        # Set this to 0 to disable.
        Cooldown: 2
      # Sets the cooldown between ALL player commands.
      # For a chat message cooldown, check the channels config.
      # Set this to 0 to disable.
      Command_Cooldown: 2.0
      # A list of commands, that will be completely excluded from the AntiSpam checks.
      # NOTE: You need to provide only ONE alias for each command. Example: If you have a /tell command with [/t, /msg, /w] aliases, you can provide only one of them.
      Command_Whitelist:
      - delhome
      - spawn
      - tell
      - kit
      - sethome
      - reply
      - home
      - warp
    Item_Show:
      # Enables the Item Showcase feature.
      # With this feature players will be able to show their items in chat and Private Messages.
      Enabled: false
      # This placeholder will be replaced in player message with an item from their hand using the format below.
      Placeholder: '@hand'
      Format:
        # Format for the item showcase in main chat. Item placeholder will be replaced by this text.
        # You can use JSON format here: https://github.com/nulli0n/NexEngine-spigot/wiki/Language-Config#json-formatting
        # You can use 'Player' placeholders: https://github.com/nulli0n/NexEngine-spigot/wiki/Internal-Placeholders
        # Other Placeholders:
        # - %item_name% - Item display name.
        # - %item_value% - Item Base64 value (for 'showItem' JSON argument).
        Chat: '&7<<? show_item:"%item_value%" ?>&f%item_name%</>&7>%format_player_color%'
        Private:
          # Format for the incoming private message, when players uses 'Item_Show.Placeholder' in his message.
          # This message will be sent next to the original message.
          # You can use JSON format here: https://github.com/nulli0n/NexEngine-spigot/wiki/Language-Config#json-formatting
          # You can use 'Player' placeholders: https://github.com/nulli0n/NexEngine-spigot/wiki/Internal-Placeholders
          # Other Placeholders:
          # - %item_name% - Item display name.
          # - %item_value% - Item Base64 value (for 'showItem' JSON argument).
          Incoming: '&d[Private] &f%player_display_name% &7shows you &7<<? show_item:"%item_value%" ?>&f%item_name%</>&7>'
          # Format for the outgoing private message, when players uses 'Item_Show.Placeholder' in his message.
          # This message will be sent next to the original message.
          # You can use JSON format here: https://github.com/nulli0n/NexEngine-spigot/wiki/Language-Config#json-formatting
          # You can use 'Player' placeholders: https://github.com/nulli0n/NexEngine-spigot/wiki/Internal-Placeholders
          # Other Placeholders:
          # - %item_name% - Item display name.
          # - %item_value% - Item Base64 value (for 'showItem' JSON argument).
          Outgoing: '&d[Private] &7You showed &7<<? show_item:"%item_value%" ?>&f%item_name%</>&7> to &f%player_display_name%&7.'
    
     
  2. Автор темы
    JlEC

    JlEC Активный участник Пользователь

    Баллы:
    61
    Имя в Minecraft:
    JlEC_
    И тут же следующая проблема - не работает локальный чат, по какой-то причине, на каком бы я расстоянии не был, сообщения из локального чата всё равно видны людям. Радиус менял, радиус стоит, но ничего не меняется.

    ЭТА ПРОБЛЕМА БЫЛА РЕШЕНА:
    sunlight.chat.bypass.channel.distance.speak
    false установить в LuckPerms


    Код:
    local:
      # Channel display name.
      Name: '<? show_text:"&l&6Локальный чат, радиус действия - 100 блоков." ?>&6</>'
      # Sets if this channel is default channel.
      # Default channel is used when player does not specify any channel in message via prefix or command.
      # You must have at least ONE default channel.
      Default: true
      # When enabled, players will automatically join this channel on server join.
      # Player must have channel permission to be able to join it (if enabled).
      Auto_Join: true
      Permission_Required:
        # When enabled, players will must have permission to be able to read (receive) messages in this channel, as well as ability to join it.
        Hear: false
        # When enabled, players will must have permission to be able to write messages in this channel.
        Speak: false
      # Sets reach distance for channel messages.
      # All players in that radius from a player who sent message will be able to see it.
      # Set this to -1 to make channel server-wide.
      Radius: 50
      # Sets custom command-shortcut to join/write this channel.
      # Do not leave this empty.
      Command_Alias: local
      # Sets custom message prefix for this channel.
      # This prefix can be used at a start of message to write in this channel.
      # Leave this empty ('') to disable.
      Message_Prefix: ''
      # Sets per-player messages cooldown (in seconds) for this channel.
      # Set this to 0 to disable.
      Message_Cooldown: 3
      # Sets the chat format for the channel.
      # PlaceholderAPI is supported here.
      # JSON Formatting is allowed: https://github.com/nulli0n/NexEngine-spigot/wiki/Language-Config#json-formatting
      # Channel Placeholders:
      # %channel_id% - Channel unique identifier.
      # %channel_name% - Channel display name.
      # %channel_radius% - Channel message radius.
      Format: '&7%channel_name% %format_player_name%%format_player_color%: %format_player_message%'
    
    global:
      # Channel display name.
      Name: '<? show_text:"&l&bГлобальный чат, работает на весь мир." ?>&b</>'
      # Sets if this channel is default channel.
      # Default channel is used when player does not specify any channel in message via prefix or command.
      # You must have at least ONE default channel.
      Default: false
      # When enabled, players will automatically join this channel on server join.
      # Player must have channel permission to be able to join it (if enabled).
      Auto_Join: true
      Permission_Required:
        # When enabled, players will must have permission to be able to read (receive) messages in this channel, as well as ability to join it.
        Hear: false
        # When enabled, players will must have permission to be able to write messages in this channel.
        Speak: false
      # Sets reach distance for channel messages.
      # All players in that radius from a player who sent message will be able to see it.
      # Set this to -1 to make channel server-wide.
      Radius: -1
      # Sets custom command-shortcut to join/write this channel.
      # Do not leave this empty.
      Command_Alias: Global
      # Sets custom message prefix for this channel.
      # This prefix can be used at a start of message to write in this channel.
      # Leave this empty ('') to disable.
      Message_Prefix: '!'
      # Sets per-player messages cooldown (in seconds) for this channel.
      # Set this to 0 to disable.
      Message_Cooldown: 3
      # Sets the chat format for the channel.
      # PlaceholderAPI is supported here.
      # JSON Formatting is allowed: https://github.com/nulli0n/NexEngine-spigot/wiki/Language-Config#json-formatting
      # Channel Placeholders:
      # %channel_id% - Channel unique identifier.
      # %channel_name% - Channel display name.
      # %channel_radius% - Channel message radius.
      Format: '&3%channel_name% &7%format_player_name%%format_player_color%: %format_player_message%'
    
    trade:
      # Channel display name.
      Name: '&2Trade'
      # Sets if this channel is default channel.
      # Default channel is used when player does not specify any channel in message via prefix or command.
      # You must have at least ONE default channel.
      Default: false
      # When enabled, players will automatically join this channel on server join.
      # Player must have channel permission to be able to join it (if enabled).
      Auto_Join: false
      Permission_Required:
        # When enabled, players will must have permission to be able to read (receive) messages in this channel, as well as ability to join it.
        Hear: false
        # When enabled, players will must have permission to be able to write messages in this channel.
        Speak: true
      # Sets reach distance for channel messages.
      # All players in that radius from a player who sent message will be able to see it.
      # Set this to -1 to make channel server-wide.
      Radius: -1
      # Sets custom command-shortcut to join/write this channel.
      # Do not leave this empty.
      Command_Alias: trade
      # Sets custom message prefix for this channel.
      # This prefix can be used at a start of message to write in this channel.
      # Leave this empty ('') to disable.
      Message_Prefix: $
      # Sets per-player messages cooldown (in seconds) for this channel.
      # Set this to 0 to disable.
      Message_Cooldown: 20
      # Sets the chat format for the channel.
      # PlaceholderAPI is supported here.
      # JSON Formatting is allowed: https://github.com/nulli0n/NexEngine-spigot/wiki/Language-Config#json-formatting
      # Channel Placeholders:
      # %channel_id% - Channel unique identifier.
      # %channel_name% - Channel display name.
      # %channel_radius% - Channel message radius.
      Format: '&2[%channel_name%] &7%format_player_name%%format_player_color%: %format_player_message%'
    
    staff:
      # Channel display name.
      Name: '&cStaff Chat'
      # Sets if this channel is default channel.
      # Default channel is used when player does not specify any channel in message via prefix or command.
      # You must have at least ONE default channel.
      Default: false
      # When enabled, players will automatically join this channel on server join.
      # Player must have channel permission to be able to join it (if enabled).
      Auto_Join: false
      Permission_Required:
        # When enabled, players will must have permission to be able to read (receive) messages in this channel, as well as ability to join it.
        Hear: true
        # When enabled, players will must have permission to be able to write messages in this channel.
        Speak: true
      # Sets reach distance for channel messages.
      # All players in that radius from a player who sent message will be able to see it.
      # Set this to -1 to make channel server-wide.
      Radius: -1
      # Sets custom command-shortcut to join/write this channel.
      # Do not leave this empty.
      Command_Alias: staffchat
      # Sets custom message prefix for this channel.
      # This prefix can be used at a start of message to write in this channel.
      # Leave this empty ('') to disable.
      Message_Prefix: ''
      # Sets per-player messages cooldown (in seconds) for this channel.
      # Set this to 0 to disable.
      Message_Cooldown: 0
      # Sets the chat format for the channel.
      # PlaceholderAPI is supported here.
      # JSON Formatting is allowed: https://github.com/nulli0n/NexEngine-spigot/wiki/Language-Config#json-formatting
      # Channel Placeholders:
      # %channel_id% - Channel unique identifier.
      # %channel_name% - Channel display name.
      # %channel_radius% - Channel message radius.
      Format: '&c[%channel_name%] &7%format_player_name%%format_player_color%: %format_player_message%'
    
     
    Последнее редактирование: 19 фев 2024

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