-
Notifications
You must be signed in to change notification settings - Fork 29
Description
Checklist before creating an issue:
- I'm using the latest version of Apollo.
- I'm using the latest version of Lunar Client. (Relaunched in the last hour)
- I'm running Apollo on ONLY the backend server OR the proxy. (YOU CANNOT RUN IT ON BOTH)
- I do NOT have both Apollo and the LEGACY API installed on the same server. (YOU CANNOT RUN BOTH AT THE SAME TIME)
- I've gathered all screenshots, logs and appropriate information related to creating a bug report.
Issue Description
Hey, I have an issue when Im trying to use the Apollo API, I don't know if its a bug or if i missed something in the documentation.
Im using Purpur-1.21.11-2538
[01:04:07 ERROR]: Command exception: /lc java.lang.UnsupportedOperationException: Apollo has not started yet! at Cube-PaperPlugin-1.0-SNAPSHOT.jar//com.lunarclient.apollo.Apollo.checkEnabled(Apollo.java:94) ~[?:?] at Cube-PaperPlugin-1.0-SNAPSHOT.jar//com.lunarclient.apollo.Apollo.getPlayerManager(Apollo.java:81) ~[?:?] at Cube-PaperPlugin-1.0-SNAPSHOT.jar//org.neanthe.cube.paper.implementation.managers.LunarClientManager.getPlayer(LunarClientManager.java:32) ~[?:?] at Cube-PaperPlugin-1.0-SNAPSHOT.jar//org.neanthe.cube.paper.plugin.commands.LunarClientCommand.execute(LunarClientCommand.java:33) ~[?:?] at Cube-PaperPlugin-1.0-SNAPSHOT.jar//org.neanthe.cube.paper.implementation.commands.CommandBuilder.execute(CommandBuilder.java:196) ~[?:?] at io.papermc.paper.command.brigadier.bukkit.BukkitCommandNode$BukkitBrigCommand.run(BukkitCommandNode.java:83) ~[purpur-1.21.11.jar:1.21.11-2538-fe2ec0b] at com.mojang.brigadier.context.ContextChain.runExecutable(ContextChain.java:73) ~[brigadier-1.3.10.jar:?] at net.minecraft.commands.execution.tasks.ExecuteCommand.execute(ExecuteCommand.java:30) ~[purpur-1.21.11.jar:1.21.11-2538-fe2ec0b] at net.minecraft.commands.execution.tasks.ExecuteCommand.execute(ExecuteCommand.java:13) ~[purpur-1.21.11.jar:1.21.11-2538-fe2ec0b] at net.minecraft.commands.execution.UnboundEntryAction.lambda$bind$0(UnboundEntryAction.java:8) ~[purpur-1.21.11.jar:1.21.11-2538-fe2ec0b] at net.minecraft.commands.execution.CommandQueueEntry.execute(CommandQueueEntry.java:5) ~[purpur-1.21.11.jar:1.21.11-2538-fe2ec0b] at net.minecraft.commands.execution.ExecutionContext.runCommandQueue(ExecutionContext.java:104) ~[purpur-1.21.11.jar:1.21.11-2538-fe2ec0b] at net.minecraft.commands.Commands.executeCommandInContext(Commands.java:477) ~[purpur-1.21.11.jar:1.21.11-2538-fe2ec0b] at net.minecraft.commands.Commands.performCommand(Commands.java:382) ~[purpur-1.21.11.jar:1.21.11-2538-fe2ec0b] at net.minecraft.commands.Commands.performCommand(Commands.java:370) ~[purpur-1.21.11.jar:1.21.11-2538-fe2ec0b] at net.minecraft.server.network.ServerGamePacketListenerImpl.performUnsignedChatCommand(ServerGamePacketListenerImpl.java:2435) ~[purpur-1.21.11.jar:1.21.11-2538-fe2ec0b] at net.minecraft.server.network.ServerGamePacketListenerImpl.lambda$handleChatCommand$15(ServerGamePacketListenerImpl.java:2408) ~[purpur-1.21.11.jar:1.21.11-2538-fe2ec0b] at net.minecraft.server.TickTask.run(TickTask.java:18) ~[purpur-1.21.11.jar:1.21.11-2538-fe2ec0b] at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:177) ~[purpur-1.21.11.jar:1.21.11-2538-fe2ec0b] at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[purpur-1.21.11.jar:1.21.11-2538-fe2ec0b] at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1563) ~[purpur-1.21.11.jar:1.21.11-2538-fe2ec0b] at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:188) ~[purpur-1.21.11.jar:1.21.11-2538-fe2ec0b] at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:151) ~[purpur-1.21.11.jar:1.21.11-2538-fe2ec0b] at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1543) ~[purpur-1.21.11.jar:1.21.11-2538-fe2ec0b] at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1537) ~[purpur-1.21.11.jar:1.21.11-2538-fe2ec0b] at net.minecraft.server.MinecraftServer.recordTaskExecutionTimeWhileWaiting(MinecraftServer.java:1247) ~[purpur-1.21.11.jar:1.21.11-2538-fe2ec0b] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1379) ~[purpur-1.21.11.jar:1.21.11-2538-fe2ec0b] at net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServer.java:392) ~[purpur-1.21.11.jar:1.21.11-2538-fe2ec0b] at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
Reproduction steps
1. Add the dependency to your project
2. Build the plugin
3. Start the serverCode Snippet (If applicable, if not write N/A)
ApolloPlayer apolloPlayer = PaperAPI.getInstance().getLunarClientManager().getPlayer(player.getUniqueId()); if(apolloPlayer == null) { player.getAudience().sendMessage(AdventureHelper.translate("player.notUsingLunarClient", locale)); return; }
Versions
1.21
Platforms
Other
Server Version
1.21
Modules
Fabric
Screenshots
Contact Information
Discord - ehmilienAdditional Context (Examples, Links, ETC)
No response