Minecord (for Discord)

Minecord (for Discord)

570k Downloads

/uptime throws an error

Sempiternity87 opened this issue ยท 1 comments

commented

Expected behavior

I expected that typing /uptime into discord where the bot is (and is online), it would show me the current uptime of the minecraft server.

Observed/actual behavior

[10:32:25] [JDA MainWS-ReadThread/INFO]: @Sempiternity#1675 used '/uptime' [10:32:25] [JDA MainWS-ReadThread/ERROR]: One of the EventListeners had an uncaught exception java.lang.NoClassDefFoundError: me/axieum/mcmod/minecord/shadow/api/org/apache/commons/lang3/time/DurationFormatUtils at me.axieum.mcmod.minecord.api.util.StringTemplate.format(StringTemplate.java:269) ~[minecord-api-1.0.0-beta.2-334e7ed5a4687c1b.jar:?] at me.axieum.mcmod.minecord.impl.cmds.command.discord.UptimeCommand.execute(UptimeCommand.java:47) ~[minecord-cmds-1.0.0-beta.2-c1ee2aa9a6f9e41a.jar:?] at me.axieum.mcmod.minecord.impl.cmds.callback.DiscordCommandListener.lambda$onSlashCommandInteraction$1(DiscordCommandListener.java:79) ~[minecord-cmds-1.0.0-beta.2-c1ee2aa9a6f9e41a.jar:?] at java.util.Optional.ifPresentOrElse(Optional.java:196) ~[?:?] at me.axieum.mcmod.minecord.impl.cmds.callback.DiscordCommandListener.onSlashCommandInteraction(DiscordCommandListener.java:38) ~[minecord-cmds-1.0.0-beta.2-c1ee2aa9a6f9e41a.jar:?] at net.dv8tion.jda.api.hooks.ListenerAdapter.onEvent(ListenerAdapter.java:361) ~[minecord-api-1.0.0-beta.2-334e7ed5a4687c1b.jar:?] at net.dv8tion.jda.api.hooks.InterfacedEventManager.handle(InterfacedEventManager.java:96) [minecord-api-1.0.0-beta.2-334e7ed5a4687c1b.jar:?] at net.dv8tion.jda.internal.hooks.EventManagerProxy.handleInternally(EventManagerProxy.java:88) [minecord-api-1.0.0-beta.2-334e7ed5a4687c1b.jar:?] at net.dv8tion.jda.internal.hooks.EventManagerProxy.handle(EventManagerProxy.java:70) [minecord-api-1.0.0-beta.2-334e7ed5a4687c1b.jar:?] at net.dv8tion.jda.internal.JDAImpl.handleEvent(JDAImpl.java:164) [minecord-api-1.0.0-beta.2-334e7ed5a4687c1b.jar:?] at net.dv8tion.jda.internal.handle.InteractionCreateHandler.handleCommand(InteractionCreateHandler.java:109) [minecord-api-1.0.0-beta.2-334e7ed5a4687c1b.jar:?] at net.dv8tion.jda.internal.handle.InteractionCreateHandler.handleInternally(InteractionCreateHandler.java:80) [minecord-api-1.0.0-beta.2-334e7ed5a4687c1b.jar:?] at net.dv8tion.jda.internal.handle.SocketHandler.handle(SocketHandler.java:36) [minecord-api-1.0.0-beta.2-334e7ed5a4687c1b.jar:?] at net.dv8tion.jda.internal.requests.WebSocketClient.onDispatch(WebSocketClient.java:957) [minecord-api-1.0.0-beta.2-334e7ed5a4687c1b.jar:?] at net.dv8tion.jda.internal.requests.WebSocketClient.onEvent(WebSocketClient.java:844) [minecord-api-1.0.0-beta.2-334e7ed5a4687c1b.jar:?] at net.dv8tion.jda.internal.requests.WebSocketClient.handleEvent(WebSocketClient.java:822) [minecord-api-1.0.0-beta.2-334e7ed5a4687c1b.jar:?] at net.dv8tion.jda.internal.requests.WebSocketClient.onBinaryMessage(WebSocketClient.java:996) [minecord-api-1.0.0-beta.2-334e7ed5a4687c1b.jar:?] at me.axieum.mcmod.minecord.shadow.api.com.neovisionaries.ws.client.ListenerManager.callOnBinaryMessage(ListenerManager.java:385) [minecord-api-1.0.0-beta.2-334e7ed5a4687c1b.jar:?] at me.axieum.mcmod.minecord.shadow.api.com.neovisionaries.ws.client.ReadingThread.callOnBinaryMessage(ReadingThread.java:276) [minecord-api-1.0.0-beta.2-334e7ed5a4687c1b.jar:?] at me.axieum.mcmod.minecord.shadow.api.com.neovisionaries.ws.client.ReadingThread.handleBinaryFrame(ReadingThread.java:996) [minecord-api-1.0.0-beta.2-334e7ed5a4687c1b.jar:?] at me.axieum.mcmod.minecord.shadow.api.com.neovisionaries.ws.client.ReadingThread.handleFrame(ReadingThread.java:755) [minecord-api-1.0.0-beta.2-334e7ed5a4687c1b.jar:?] at me.axieum.mcmod.minecord.shadow.api.com.neovisionaries.ws.client.ReadingThread.main(ReadingThread.java:108) [minecord-api-1.0.0-beta.2-334e7ed5a4687c1b.jar:?] at me.axieum.mcmod.minecord.shadow.api.com.neovisionaries.ws.client.ReadingThread.runMain(ReadingThread.java:64) [minecord-api-1.0.0-beta.2-334e7ed5a4687c1b.jar:?] at me.axieum.mcmod.minecord.shadow.api.com.neovisionaries.ws.client.WebSocketThread.run(WebSocketThread.java:45) [minecord-api-1.0.0-beta.2-334e7ed5a4687c1b.jar:?] Caused by: java.lang.ClassNotFoundException: me.axieum.mcmod.minecord.shadow.api.org.apache.commons.lang3.time.DurationFormatUtils ... 24 more

Steps/models to reproduce

With the mod connected to a discord bot running on my server, trying to use /uptime throws the error, while /tps works just fine.

Version

minecord-md1.19-1.0.0-beta.2
minecord-api-mc1.19-1.0.0-beta.2
minecord-chat-mc1.19-1.0.0-beta.2
minecord-cmds-mc1.19-1.0.0-beta.2

Agreements

  • I am running the latest version of the mod.
  • My version of Minecraft is supported.
  • I have searched for and ensured there isn't already an open issue regarding this.

Other

The error I'm getting in the server log seems to suggest that a file dependency is missing in the build (DurationFormatUtils).

commented

Sorry about that, didn't search for the class file in the closed issues.