Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/list command doesn't work with Floodgate #8

Open
Gaming32 opened this issue Jan 7, 2025 · 1 comment
Open

/list command doesn't work with Floodgate #8

Gaming32 opened this issue Jan 7, 2025 · 1 comment

Comments

@Gaming32
Copy link

Gaming32 commented Jan 7, 2025

If Floodgate is installed on the server, and Bedrock players are online, running the /list Discord command causes an NPE.

java.lang.NullPointerException: Cannot invoke "com.mojang.authlib.yggdrasil.ProfileResult.profile()" because the return value of "com.mojang.authlib.minecraft.MinecraftSessionService.fetchProfile(java.util.UUID, boolean)" is null
        at knot/de.erdbeerbaerlp.dcintegration.architectury.util.ServerInterface.getNameFromUUID(ServerInterface.java:174) ~[dcintegration-fabric-MC1.21.3-3.1.0.1.jar:?]
        at knot/de.erdbeerbaerlp.dcintegration.common.discordCommands.CommandList.execute(CommandList.java:40) ~[de_erdbeerbaerlp_dcintegration_common-3.1.0-55dc154341f71a65.jar:?]
        at knot/de.erdbeerbaerlp.dcintegration.common.DiscordEventListener.processDiscordCommand(DiscordEventListener.java:197) ~[de_erdbeerbaerlp_dcintegration_common-3.1.0-55dc154341f71a65.jar:?]
        at knot/de.erdbeerbaerlp.dcintegration.common.DiscordEventListener.onEvent(DiscordEventListener.java:63) ~[de_erdbeerbaerlp_dcintegration_common-3.1.0-55dc154341f71a65.jar:?]
        at knot/net.dv8tion.jda.api.hooks.InterfacedEventManager.handle(InterfacedEventManager.java:98) [de_erdbeerbaerlp_dcintegration_common-3.1.0-55dc154341f71a65.jar:?]
@Toastberries
Copy link

As a temporary workaround until the issue is resolved, you can manually define the /list in Commands.toml to use the vanilla minecraft command like so:

[[commands.customCommands]]
name = "list"
description = "Lists all players currenty online"
mcCommand = "list"
textToSend = ""
adminOnly = false
hidden = false
args = []

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants