Giter VIP home page Giter VIP logo

Comments (15)

Xujiayao avatar Xujiayao commented on June 3, 2024

Did you upgrade your MCDC version when you restarted the server this time?

from discord-mc-chat.

ebay-kid avatar ebay-kid commented on June 3, 2024

I did not change the MCDC version

from discord-mc-chat.

Xujiayao avatar Xujiayao commented on June 3, 2024

I tested in my test server and found no problem. Below is my server environment:

  • Minecraft 1.17.1 with Fabric Loader 0.13.3
  • Installed mods:
    • fabric 0.46.1+1.17
    • carpet 1.4.57
    • lithium 0.7.5
    • mcdiscordchat 1.17-1.12.1
    • phosphor 0.8.0

Also, to simulate your configuration, I added /msg to excludedCommands, but still no problem.

Did you find any errors or exceptions in the console?

My mcdiscordchat.json:

{
  "generic": {
    "switchLanguageFromChinToEng": false,
    "botToken": "hidden",
    "botListeningStatus": "",
    "webhookURL": "hidden",
    "channelId": "hidden",
    "consoleLogChannelId": "hidden",
    "worldName": "world",
    "avatarAPI": "https://visage.surgeplay.com/bust/%player%.png",
    "modifyChatMessages": true,
    "broadcastCommandExecution": true,
    "multiServer": true,
    "useUUIDInsteadNickname": true,
    "membersIntents": true,
    "announcePlayers": true,
    "announceAdvancements": true,
    "announceDeaths": true,
    "announceHighMSPT": true,
    "msptLimit": 50,
    "removeVanillaFormattingFromDiscord": false,
    "removeLineBreakFromDiscord": false,
    "botCommandPrefix": "!",
    "excludedCommands": [
      "/tell",
      "/msg"
    ],
    "superAdminsIds": [],
    "adminsIds": [
      "hidden",
      "hidden"
    ],
    "bannedDiscord": [],
    "bannedMinecraft": []
  },
  "multiServer": {
    "serverDisplayName": "TEST",
    "botName": "MCDC Bot"
  },
  "textsZH": {
    "serverStarted": "**[TEST] 已启动!**",
    "serverStopped": "**[TEST] 已关闭!**",
    "joinServer": "**%playername% 加入了 [TEST]**",
    "leftServer": "**%playername% 离开了 [TEST]**",
    "deathMessage": "**%deathmessage%**",
    "advancementTask": "**%playername% 达成了进度 [%advancement%]**",
    "advancementChallenge": "**%playername% 完成了挑战 [%advancement%]**",
    "advancementGoal": "**%playername% 达成了目标 [%advancement%]**",
    "highMSPT": "**%mentionAllAdmins% 服务器 MSPT (%mspt%) 高于 %msptLimit%!**",
    "consoleLogMessage": "**[%timestamp%] [INFO]:** %message%",
    "blueColoredText": "[%servername%] ",
    "roleColoredText": "<%name%>",
    "colorlessText": " %message%"
  },
  "textsEN": {
    "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": "**%mentionAllAdmins% Server MSPT (%mspt%) is above %msptLimit%!**",
    "consoleLogMessage": "**[%timestamp%] [INFO]:** %message%",
    "blueColoredText": "[%servername%] ",
    "roleColoredText": "<%name%>",
    "colorlessText": " %message%"
  }
}

from discord-mc-chat.

ebay-kid avatar ebay-kid commented on June 3, 2024

There are no errors or warns in the console.

from discord-mc-chat.

ebay-kid avatar ebay-kid commented on June 3, 2024

Also, messages sent on discord appear in the in-game chat. Do I need to allow another port through the firewall?

from discord-mc-chat.

Xujiayao avatar Xujiayao commented on June 3, 2024

Also, messages sent on discord appear in the in-game chat. Do I need to allow another port through the firewall?

I think this just means JDA (Java Discord API) is working.

Please try to use my config (remember to backup your own) and leave only fabric 0.46.1+1.17 and mcdiscordchat 1.17-1.12.1 and see if the same problem still occurs.

from discord-mc-chat.

Xujiayao avatar Xujiayao commented on June 3, 2024

Please provide more information. If you have resolved the problem on your own, please let me know too. Thx.

from discord-mc-chat.

Xujiayao avatar Xujiayao commented on June 3, 2024

Please provide more information. If you have resolved the problem on your own, please let me know too. Thx.

If there is still no new activity after 7 days, the issue will be marked invalid and closed.

from discord-mc-chat.

Xujiayao avatar Xujiayao commented on June 3, 2024

I believe the factions mod is the only mod with mixins into the chat.

The factions mod @Redirect the method handleMessage in ServerPlayNetworkHandler to another place:

@Redirect(method = "handleMessage", at = @At(value = "INVOKE", target = "..."))
private void replaceChatMessage(PlayerManager playerManager, Text serverMessage, Function<ServerPlayerEntity, Text> playerMessageFactory, MessageType playerMessageType, UUID sender, TextStream.Message message) {
     ChatEvents.handleMessage(player, message.getRaw());
}

The method of MCDC to obtain chat messages sent by players in the server is to @Inject the same method, so MCDC no longer works.

from discord-mc-chat.

Xujiayao avatar Xujiayao commented on June 3, 2024

You'll need to modify the Faction Mod yourself to fix this.

from discord-mc-chat.

ebay-kid avatar ebay-kid commented on June 3, 2024

Hello, sorry for the very delayed responses. I've found the time to do more testing today, and I removed all mods other than Fabric API 0.46.1, Loader 0.13.3, and the latest MCDC 2.0.0, and I still have the same issues. I've also tried re-inviting the bot to the server, but to no avail. I still receive the same "Server started!" and "Server stopped!" messages, and the logs channel still works.

from discord-mc-chat.

ebay-kid avatar ebay-kid commented on June 3, 2024

I'm on JAVA 17.0.1, and I've run system updates, neither of which have resolved the issues. I'm running on an Oracle Ampere AARCH Linux, and the server is being run in a tmux instance, if any of this information is helpful.

from discord-mc-chat.

Xujiayao avatar Xujiayao commented on June 3, 2024

It's ok. 👌👍

Since you are running the server on a Linux machine, I think you issue might be related to two previous MCDC issues (#11 and #18) that were resolved by updating Java to 17.0.2. Maybe try updating to Java 17.0.2 first?

from discord-mc-chat.

ebay-kid avatar ebay-kid commented on June 3, 2024

That worked perfectly, thank you so much!

from discord-mc-chat.

Xujiayao avatar Xujiayao commented on June 3, 2024

Ok! 👌

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.