GeyserMC / Geyser-Fabric

MIT License
74 stars 18 forks source link

Errors with custom message type #55

Closed arnokeesman closed 2 years ago

arnokeesman commented 2 years ago

logs

how to reproduce:

  1. create a minecraft server with Geyser-Fabric, Floodgate-Fabric, Fabric API and Styled Chat
  2. join through Geyser with a bedrock client

Styled Chat registers custom message type which works on vanilla clients

Camotoy commented 2 years ago

Could you please send your Styled Chat config?

arnokeesman commented 2 years ago

It's default, I have not touched any configs on this test server>

{
  "CONFIG_VERSION_DONT_TOUCH_THIS": 2,
  "_comment": "Before changing anything, see https://github.com/Patbox/StyledChat#configuration",
  "defaultStyle": {
    "displayName": "${default}",
    "chat": "<${player}> ${message}",
    "join": "<yellow><lang:multiplayer.player.joined:'${player}'></yellow>",
    "joinRenamed": "<yellow><lang:multiplayer.player.joined.renamed:'${player}':'${old_name}'></yellow>",
    "joinFirstTime": "<yellow><lang:multiplayer.player.joined:'${player}'></yellow>",
    "left": "<yellow><lang:multiplayer.player.left:'${player}'></yellow>",
    "death": "${default_message}",
    "advancementTask": "<lang:chat.type.advancement.task:'${player}':'${advancement}'>",
    "advancementChallenge": "<lang:chat.type.advancement.challenge:'${player}':'${advancement}'>",
    "advancementGoal": "<lang:chat.type.advancement.goal:'${player}':'${advancement}'>",
    "teamChatSent": "<lang:'chat.type.team.sent':'<hover\\:\\'<lang\\:chat.type.team.hover>\\'><suggest_command\\:\\'/teammsg \\'>${team}':'${displayName}':'${message}'>",
    "teamChatReceived": "<lang:'chat.type.team.text':'<hover\\:\\'<lang\\:chat.type.team.hover>\\'><suggest_command\\:\\'/teammsg \\'>${team}':'${displayName}':'${message}'>",
    "privateMessageSent": "<gray><italic><lang:commands.message.display.outgoing:'${receiver}':'${message}'>",
    "privateMessageReceived": "<gray><italic><lang:commands.message.display.incoming:'${sender}':'${message}'>",
    "sayCommand": "[${player}] ${message}",
    "meCommand": "<lang:'chat.type.emote':'${player}':'${message}'>"
  },
  "permissionStyles": [],
  "petDeathMessage": "${default_message}",
  "emoticons": {
    "potion": "🧪",
    "item": "[%player:equipment_slot mainhand%]",
    "trident": "🔱",
    "rod": "🎣",
    "shrug": "¯\\_(ツ)_/¯",
    "bow": "🏹",
    "bell": "🔔",
    "heart": "❤",
    "bucket": "🪣",
    "sword": "🗡",
    "shears": "✂",
    "pos": "%player:pos_x% %player:pos_y% %player:pos_z%",
    "fire": "🔥",
    "table": "(╯°□°)╯︵ ┻━┻"
  },
  "permissionEmoticons": [],
  "legacyChatFormatting": true,
  "parseLinksInChat": true,
  "enableMarkdown": true,
  "allowModdedDecorators": true,
  "sendFullMessageInChatPreview": true,
  "linkStyle": "<underline><c:#7878ff>${link}",
  "spoilerStyle": "<gray>${spoiler}",
  "spoilerSymbol": "▌",
  "defaultEnabledFormatting": {
    "dark_red": true,
    "color": false,
    "underline": true,
    "yellow": true,
    "insert": false,
    "open_url": false,
    "hard_gradient": false,
    "italic": true,
    "dark_blue": true,
    "dark_purple": true,
    "gold": true,
    "red": true,
    "aqua": true,
    "hover": false,
    "score": false,
    "run_command": false,
    "gray": true,
    "light_purple": true,
    "white": true,
    "pos": true,
    "dark_gray": true,
    "spoiler": true,
    "strikethrough": true,
    "lang": false,
    "obfuscated": false,
    "change_page": false,
    "suggest_command": false,
    "st": true,
    "raw_style": false,
    "item": true,
    "b": true,
    "green": true,
    "dark_green": true,
    "gradient": false,
    "black": true,
    "i": true,
    "bold": true,
    "click": false,
    "rainbow": false,
    "blue": true,
    "dark_aqua": true,
    "keybind": false,
    "reset": false,
    "clear_color": false,
    "copy_to_clipboard": false,
    "font": false
  }
}