thecatcore / Fabric---Discord-Link

MIT License
75 stars 31 forks source link

1.17 Server hangs when starting after "Saving config files." is logged #200

Open trevorjwilliams opened 2 years ago

trevorjwilliams commented 2 years ago

Describe the bug After following the installation instructions and configuring fdlink.json, Minecraft fails to start, hanging after the following lines are logged:

06:31:18] [main/INFO]: Initializing 1.16 Compat module
[06:31:18] [main/INFO]: Looking for config file(s).
[06:31:18] [main/INFO]: Reading config file(s).
[06:31:18] [main/INFO]: Config files read.
[06:31:18] [main/INFO]: Saving config files.

Reproduction steps

  1. Install and configure the addon on a 1.17 server
  2. Start the server
  3. Server hangs indefinitely as described above. Removing the addon allows normal functioning to return.

Expected behaviour The server should have been able to start.

Additional context

fdlink.json Please attach your configuration file (fdlink.json) here (edit the token out)

{
  "token": "redacted",
  "chatChannels": [
    "1006809270047739904"
  ],
  "logChannels": [
    "1007185589638008895"
  ],
  "webhook": {
    "url": "",
    "mentions": {
      "everyone": false,
      "roles": false,
      "users": true
    }
  },
  "ignoreBots": true,
  "activityUpdateInterval": 120,
  "minecraftToDiscord": {
    "general": {
      "enableDebugLogs": false
    },
    "chatChannels": {
      "commandPrefix": "-",
      "allowDiscordCommands": false,
      "serverStartingMessage": true,
      "serverStartMessage": true,
      "serverStopMessage": true,
      "serverStoppingMessage": true,
      "customChannelDescription": false,
      "minecraftToDiscordTag": false,
      "minecraftToDiscordDiscriminator": false,
      "playerMessages": true,
      "teamPlayerMessages": true,
      "joinAndLeaveMessages": true,
      "advancementMessages": true,
      "challengeMessages": true,
      "goalMessages": true,
      "deathMessages": true,
      "sendMeCommand": true,
      "sendSayCommand": true,
      "adminMessages": false,
      "atATellRaw": false,
      "achievementMessages": true
    },
    "logChannels": {
      "serverStartingMessage": true,
      "serverStartMessage": true,
      "serverStopMessage": true,
      "serverStoppingMessage": true,
      "customChannelDescription": false,
      "minecraftToDiscordTag": false,
      "minecraftToDiscordDiscriminator": false,
      "playerMessages": false,
      "teamPlayerMessages": false,
      "joinAndLeaveMessages": true,
      "advancementMessages": false,
      "challengeMessages": false,
      "goalMessages": false,
      "deathMessages": true,
      "sendMeCommand": true,
      "sendSayCommand": true,
      "adminMessages": true,
      "atATellRaw": false,
      "achievementMessages": true
    }
  },
  "discordToMinecraft": {
    "pingLongVersion": false
  },
  "emojiMap": [],
  "version": 9
}