Giter VIP home page Giter VIP logo

Comments (15)

Soul0o0 avatar Soul0o0 commented on June 3, 2024 1

Ah ok I see, that's fair then.

And yes Chinese, but my Mandarin is not great these days.

Thanks for the response! Looking forward to seeing more development in the mod. :)

from discord-mc-chat.

Xujiayao avatar Xujiayao commented on June 3, 2024 1

Hmmm this is only a temporary solution. I will add markdown escaping to fix this bug so that you can show your nickname in Minecraft.

I think \ is the only symbol 🤔

from discord-mc-chat.

Xujiayao avatar Xujiayao commented on June 3, 2024 1

Hmmm this is only a temporary solution. I will add markdown escaping to fix this bug so that you can show your nickname in Minecraft.

Fixed

from discord-mc-chat.

Soul0o0 avatar Soul0o0 commented on June 3, 2024 1

Hmmm this is only a temporary solution. I will add markdown escaping to fix this bug so that you can show your nickname in Minecraft.

Fixed

Tested and it works without issues. Thank you! :)

from discord-mc-chat.

Xujiayao avatar Xujiayao commented on June 3, 2024

presumably the player adding requirements towards reaching the advancement (in our case, players were setting foot in biomes they haven't found before)

This should be the reason.

If possible, I hope there is a way to choose what messages are to be sent to which Discord channel and which ones we can disable.

If I have a way to fix advancements not sending correctly, do you still need to disable them?

from discord-mc-chat.

Soul0o0 avatar Soul0o0 commented on June 3, 2024

If I have a way to fix advancements not sending correctly, do you still need to disable them?

If it can be fixed, it's not necessary to disable them for the main server chat channel, but might be useful for us to disable it for the logs channel. In another Fabric-Discord chat mod I'm using currently (Fabric-Discord Link), it allows us to choose what message we'd like to disable for the server chat vs the log channel, which is useful just so that chat messages and other things do not drown out other messages that is more relevant in the log channel.

from discord-mc-chat.

Xujiayao avatar Xujiayao commented on June 3, 2024

The current MCDC code does not send this kind of messages to the log channel, only chat channel. To keep the Config uncomplicated, I won't do a way to disable them.

from discord-mc-chat.

Soul0o0 avatar Soul0o0 commented on June 3, 2024

Oh? The first time I tested it still sent in game chat messages to the log channel. Here's a screenshot:
image

I made sure to input the IDs for the server chat and and the log channel separately. Is there something in the settings that I missed?

from discord-mc-chat.

Xujiayao avatar Xujiayao commented on June 3, 2024

Oh, I mean advancement messages are not sent, player chats are still sent. This is to keep the log channel and console log with the same content. Chinese?

from discord-mc-chat.

Xujiayao avatar Xujiayao commented on June 3, 2024

Please try the latest build version and see if there is any problem.

from discord-mc-chat.

Soul0o0 avatar Soul0o0 commented on June 3, 2024

Hello! Been a bit busy and missed your latest reply. I've downloaded the latest build (#94) and did some testing, so far the advancements are working fine.

However, I encountered a new issue which I'm not sure how to solve. The Discord messages are not sending to the in game chat and this error appears in the console:
image

from discord-mc-chat.

Xujiayao avatar Xujiayao commented on June 3, 2024

Please check if the Texts of your Config are formatted incorrectly.

from discord-mc-chat.

Soul0o0 avatar Soul0o0 commented on June 3, 2024

I think I need help with this because this part looks new. I didn't change any of the formatting of the texts, only the channel description (which is working fine it seems). I don't see any docs on how to change the formatting so I'm not sure how to do it.

Here's the text configs on my config file:

  "textsEN": {
    "unformattedResponseMessage": "    ┌──── <%name%> %message%",
    "unformattedChatMessage": "[%server%] <%name%> %message%",
    "unformattedOtherMessage": "[%server%] %message%",
    "formattedResponseMessage": "[{\"text\":\"    ┌──── \",\"bold\":true,\"color\":\"dark_gray\"},{\"text\":\"<%name%> \",\"bold\":false,\"color\":\"%roleColor%\"},{\"text\":\"%message%\",\"bold\":false,\"color\":\"dark_gray\"}]",
    "formattedChatMessage": "[{\"text\":\"[%server%] \",\"bold\":true,\"color\":\"blue\"},{\"text\":\"<%name%> \",\"bold\":false,\"color\":\"%roleColor%\"},{\"text\":\"%message%\",\"bold\":false,\"color\":\"gray\"}]",
    "formattedOtherMessage": "[{\"text\":\"[%server%] \",\"bold\":true,\"color\":\"blue\"},{\"text\":\"%message%\",\"bold\":false,\"color\":\"gray\"}]",
    "serverStarted": "**Server started!**",
    "serverStopped": "**Server stopped!**",
    "joinServer": "**%playerName% joined the game**",
    "leftServer": "**%playerName% left the game**",
    "deathMessage": "**%deathMessage%**",
    "advancementTask": "**%playerName% has made the advancement [%advancement%]**",
    "advancementChallenge": "**%playerName% has completed the challenge [%advancement%]**",
    "advancementGoal": "**%playerName% has reached the goal [%advancement%]**",
    "highMspt": "**Server MSPT (%mspt%) is above %msptLimit%!**",
    "consoleLogMessage": "[%time%] [INFO] %message%",
    "offlineChannelTopic": ":x: Server offline | Last updated: <t:%lastUpdateTime%:f>",
    "onlineChannelTopic": ":white_check_mark: %onlinePlayerCount%/%maxPlayerCount% player(s) online | Server started <t:%serverStartedTime%:R> | Last updated: <t:%lastUpdateTime%:f>",
    "onlineChannelTopicForMultiServer": ":white_check_mark: %onlinePlayerCount%/%maxPlayerCount% player(s) online | %uniquePlayerCount% unique player(s) ever joined | %onlineServerCount% server(s) online [%onlineServerList%] | Server started <t:%serverStartedTime%:R> | Last updated: <t:%lastUpdateTime%:f>"
  }

from discord-mc-chat.

Xujiayao avatar Xujiayao commented on June 3, 2024

What is your nickname in the Discord server? Try removing the \

from discord-mc-chat.

Soul0o0 avatar Soul0o0 commented on June 3, 2024

Ah, ok it works now. Removed the \ from my Discord nickname and it's now sending in-game. Are there any other symbols that needs to be removed from nicknames? Just in case others get affected too.

EDIT: Nevermind! Changed useServerNickname to false so the issue shouldn't arise again anytime soon. Thanks! xD

from discord-mc-chat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.