Skip to content

[Bug]: discord unlink command doesn't work #604

@jamez2128

Description

@jamez2128

What happened?

After using the discord unlink command, the player still be able to join even after reloading and restarting the server and the player still exists on the LinkedPlayers.json file. The only way to properly unlink and account is to manually edit and remove the player in the json file and restarted the server, it now works as expected.

Minecraft version: 1.21.8
Fabric Loader version: 0.17.2
Fabric API version: fabric-api-0.131.0+1.21.8.jar

Game Version

Other

What platform are you using?

Fabric

Platform version

0.17.2

Config File

(Configs unchanged except bot token and bot channel)

Crash report / Error log (if applicable)

discord unlink jamez2128
[00:40:10] [Server thread/INFO]: Successfully unlinked

After unlinking command, player is still able to join
LinkedPlayers.json:
[
  {
    "discordID": "441941500708782080",
    "mcPlayerUUID": "91e3e3a6-e31c-46d6-8c09-b054d67f8676",
    "floodgateUUID": "",
    "settings": {
      "useDiscordNameInChannel": true,
      "ignoreDiscordChatIngame": false,
      "ignoreReactions": false,
      "pingSound": true,
      "hideFromDiscord": false
    }
  }
]

I tried to removed the player entry in the file like this. The player still able to join after even after I used the discord reload command but it now works as expected when I restarted the server.
LinkedPlayers.json:
[]

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions