lunarclient / apollo Goto Github PK
View Code? Open in Web Editor NEWNext-generation Lunar Client server API
Home Page: https://lunarclient.dev
License: MIT License
Next-generation Lunar Client server API
Home Page: https://lunarclient.dev
License: MIT License
Because in method com.lunarclient.apollo.wrapper.VelocityApolloStats#getPlugins
at the line com/lunarclient/apollo/wrapper/VelocityApolloStats.java:66
We take a null value if there is no version, maybe a non-null default value should be given or change the optionality of the field "version"
[05.12 23:10:13.163] INFO: [kitpvp-1] Could not pass event PlayerRegisterChannelEvent to Apollo-Bukkit v1.0.3
[05.12 23:10:13.163] INFO: [kitpvp-1] java.lang.RuntimeException: Unable to wrap value of type 'Color'!
[05.12 23:10:13.163] INFO: [kitpvp-1] at com.lunarclient.apollo.option.OptionsImpl.wrapValue(OptionsImpl.java:264) ~[?:?]
[05.12 23:10:13.163] INFO: [kitpvp-1] at com.lunarclient.apollo.network.NetworkOptions.moduleWithOptions(NetworkOptions.java:113) ~[?:?]
[05.12 23:10:13.163] INFO: [kitpvp-1] at com.lunarclient.apollo.network.NetworkOptions.sendOptions(NetworkOptions.java:88) ~[?:?]
[05.12 23:10:13.163] INFO: [kitpvp-1] at com.lunarclient.apollo.player.ApolloPlayerManagerImpl.addPlayer(ApolloPlayerManagerImpl.java:74) ~[?:?]
[05.12 23:10:13.163] INFO: [kitpvp-1] at com.lunarclient.apollo.listener.ApolloPlayerListener.onRegisterChannel(ApolloPlayerListener.java:53) ~[?:?]
[05.12 23:10:13.163] INFO: [kitpvp-1] at org.imanity.imanityspigot.executor.MethodHandleEventExecutor.execute(MethodHandleEventExecutor.java:47) ~[paper.jar:git-iSpigot-PaperEdition]
[05.12 23:10:13.163] INFO: [kitpvp-1] at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:78) ~[paper.jar:git-iSpigot-PaperEdition]
[05.12 23:10:13.163] INFO: [kitpvp-1] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[paper.jar:git-iSpigot-PaperEdition]
[05.12 23:10:13.163] INFO: [kitpvp-1] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:524) ~[paper.jar:git-iSpigot-PaperEdition]
[05.12 23:10:13.163] INFO: [kitpvp-1] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:510) ~[paper.jar:git-iSpigot-PaperEdition]
[05.12 23:10:13.163] INFO: [kitpvp-1] at org.bukkit.craftbukkit.v1_8_R3.entity.CraftPlayer.addChannel(CraftPlayer.java:1159) ~[paper.jar:git-iSpigot-PaperEdition]
[05.12 23:10:13.163] INFO: [kitpvp-1] at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:2511) ~[paper.jar:git-iSpigot-PaperEdition]
[05.12 23:10:13.163] INFO: [kitpvp-1] at net.minecraft.server.v1_8_R3.PacketPlayInCustomPayload.a(PacketPlayInCustomPayload.java:39) ~[paper.jar:git-iSpigot-PaperEdition]
[05.12 23:10:13.163] INFO: [kitpvp-1] at net.minecraft.server.v1_8_R3.PacketPlayInCustomPayload.a(PacketPlayInCustomPayload.java:18) ~[paper.jar:git-iSpigot-PaperEdition]
[05.12 23:10:13.163] INFO: [kitpvp-1] at net.minecraft.server.v1_8_R3.PlayerConnectionUtils.lambda$ensureMainThread$0(PlayerConnectionUtils.java:52) ~[paper.jar:git-iSpigot-PaperEdition]
[05.12 23:10:13.163] INFO: [kitpvp-1] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) ~[?:?]
[05.12 23:10:13.163] INFO: [kitpvp-1] at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
[05.12 23:10:13.163] INFO: [kitpvp-1] at org.imanity.imanityspigot.thread.TickTask.run(TickTask.java:18) ~[paper.jar:git-iSpigot-PaperEdition]
[05.12 23:10:13.164] INFO: [kitpvp-1] at org.imanity.imanityspigot.thread.ThreadHandler.executeTask(ThreadHandler.java:95) ~[paper.jar:git-iSpigot-PaperEdition]
[05.12 23:10:13.164] INFO: [kitpvp-1] at org.imanity.imanityspigot.thread.ThreadHandlerReentrant.executeTask(ThreadHandlerReentrant.java:25) ~[paper.jar:git-iSpigot-PaperEdition]
[05.12 23:10:13.164] INFO: [kitpvp-1] at org.imanity.imanityspigot.thread.ThreadHandler.executeNext(ThreadHandler.java:67) ~[paper.jar:git-iSpigot-PaperEdition]
[05.12 23:10:13.164] INFO: [kitpvp-1] at net.minecraft.server.v1_8_R3.MinecraftServer.executeNext(MinecraftServer.java:1931) ~[paper.jar:git-iSpigot-PaperEdition]
[05.12 23:10:13.164] INFO: [kitpvp-1] at org.imanity.imanityspigot.thread.ThreadHandler.awaitTasks(ThreadHandler.java:78) ~[paper.jar:git-iSpigot-PaperEdition]
[05.12 23:10:13.164] INFO: [kitpvp-1] at net.minecraft.server.v1_8_R3.MinecraftServer.sleepForTick(MinecraftServer.java:1904) ~[paper.jar:git-iSpigot-PaperEdition]
[05.12 23:10:13.164] INFO: [kitpvp-1] at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:840) ~[paper.jar:git-iSpigot-PaperEdition]
[05.12 23:10:13.164] INFO: [kitpvp-1] at java.lang.Thread.run(Thread.java:840) [?:?]
[05.12 23:10:19.750] INFO: CloudService [uniqueId=2f596110-d153-40b5-94f2-8601cda09952 task=lobby
Just like the title says, If using legacy lunar api, everything works fine.
But I've trying to migrate to apollo, I can see the waypoint in the list, but just not shown at world.
1. Trying to create a waypoint to player
2. Player can see it in the list
3. But can not see it in the world
1.8
Spigot / Bukkit
1.8
Optifine
https://imgur.com/a/K9kN3bs (I've also attach the desc on imgur desc field)
Discord - ludatou
No response
Heyo, I'm trying to add full support to LunarClient on my Paper Server using Apollo, but I can't seem to get it to recognize me as a LunarClient user in any way.
Ive already seen #65 and idk if the problem is still the same
I'm running:
Method: player.sendMessage("Is a LunarUser? " + Apollo.getPlayerManager().hasSupport(player.getUniqueId()));
Wanting to do some stuff in JS and would like to be able to tell if a player is online on Lunar Client.
Glint doesnt show up on worn armor only the item form as you can see in the image attached below the glint of the armor is red but the glint on the item but not on the actual armor model
Add red glint to armor
Wear it
N/A
1.8
Spigot / Bukkit
1.8
Optifine
![image](https://github.com/user-attachments/assets/c7ab5c4b-98cc-402a-8ec2-67ca25109656)
Discord - ambassator
No response
Lunar client miss penalty doesn't work, I was trying to enable it for abt 4 hours on a custom impl when I gave up and tried using the normal one, thats when I realized that you literally cant turn it on via the official api either, and 0 servers have it on (I tested elevate, mobpvp, astralmc, sololegends, minecadia, , etc.) all servers that had it on before suddenly are broken now
Use Legacy Combat module
Punch in air
Instantly start mining block
It doesn't mine for 0.5 seconds which means its off
N/A
1.8
Spigot / Bukkit
1.8
Optifine
No response
Discord - Ambassator
No response
I have a problem with apollo, I put the following mods disabled, but players can still use them
1. Setup the mods.yml
2. Restart your server
3. Make a player join in the server
4. The mod won't be disabled
N/A
1.17
Spigot / Bukkit
1.17
Optifine
![IMAGE](https://imgur.com/fB3aE3E)
Discord - Raffymimi
No response
Hi! I'm starting an SMP server and I'm hoping to disable the "minimap" mod. It's a Paper server, so I downloaded the Bukkit jar file for Apollo and added it. No matter what I do, the changes I make in the mods.yml file have no effect on the server. In most cases, when I restart the server to try and add those changes, it clears everything I've written and sets it back to default (despite me saving my work).
All I want to do is disable the minimap mod when people join my server on Lunar Client, but nothing has worked. Not sure if this is a bug or my own user error, but I've read the documentation and I'm relatively confident that I didn't screw anything up.
I'd love some advice on what else to try, and thank you for your time!
All custom mod and probably module settings too are reset after a player switches servers on waterfall (might affect velocity too)
Also, gonna mention this since it will be related to fixing this issue. Can you please make it so that
Using the old LC-API I was able to send multiple LCTitlePacket(s) as TitleType.SUBTITLE to create a smooth "zoom effect" by increasing the scale by a little for each packet, i tried to switch to the new API but for some reason the using of small scale isn't available, is this a wanted regression or is there any other reason this is being limited?
[05.12 23:10:13.163] INFO: [kitpvp-1] Could not pass event PlayerRegisterChannelEvent to Apollo-Bukkit v1.0.3
[05.12 23:10:13.163] INFO: [kitpvp-1] java.lang.RuntimeException: Unable to wrap value of type 'Color'!
[05.12 23:10:13.163] INFO: [kitpvp-1] at com.lunarclient.apollo.option.OptionsImpl.wrapValue(OptionsImpl.java:264) ~[?:?]
[05.12 23:10:13.163] INFO: [kitpvp-1] at com.lunarclient.apollo.network.NetworkOptions.moduleWithOptions(NetworkOptions.java:113) ~[?:?]
[05.12 23:10:13.163] INFO: [kitpvp-1] at com.lunarclient.apollo.network.NetworkOptions.sendOptions(NetworkOptions.java:88) ~[?:?]
[05.12 23:10:13.163] INFO: [kitpvp-1] at com.lunarclient.apollo.player.ApolloPlayerManagerImpl.addPlayer(ApolloPlayerManagerImpl.java:74) ~[?:?]
[05.12 23:10:13.163] INFO: [kitpvp-1] at com.lunarclient.apollo.listener.ApolloPlayerListener.onRegisterChannel(ApolloPlayerListener.java:53) ~[?:?]
[05.12 23:10:13.163] INFO: [kitpvp-1] at org.imanity.imanityspigot.executor.MethodHandleEventExecutor.execute(MethodHandleEventExecutor.java:47) ~[paper.jar:git-iSpigot-PaperEdition]
[05.12 23:10:13.163] INFO: [kitpvp-1] at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:78) ~[paper.jar:git-iSpigot-PaperEdition]
[05.12 23:10:13.163] INFO: [kitpvp-1] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[paper.jar:git-iSpigot-PaperEdition]
[05.12 23:10:13.163] INFO: [kitpvp-1] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:524) ~[paper.jar:git-iSpigot-PaperEdition]
[05.12 23:10:13.163] INFO: [kitpvp-1] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:510) ~[paper.jar:git-iSpigot-PaperEdition]
[05.12 23:10:13.163] INFO: [kitpvp-1] at org.bukkit.craftbukkit.v1_8_R3.entity.CraftPlayer.addChannel(CraftPlayer.java:1159) ~[paper.jar:git-iSpigot-PaperEdition]
[05.12 23:10:13.163] INFO: [kitpvp-1] at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:2511) ~[paper.jar:git-iSpigot-PaperEdition]
[05.12 23:10:13.163] INFO: [kitpvp-1] at net.minecraft.server.v1_8_R3.PacketPlayInCustomPayload.a(PacketPlayInCustomPayload.java:39) ~[paper.jar:git-iSpigot-PaperEdition]
[05.12 23:10:13.163] INFO: [kitpvp-1] at net.minecraft.server.v1_8_R3.PacketPlayInCustomPayload.a(PacketPlayInCustomPayload.java:18) ~[paper.jar:git-iSpigot-PaperEdition]
[05.12 23:10:13.163] INFO: [kitpvp-1] at net.minecraft.server.v1_8_R3.PlayerConnectionUtils.lambda$ensureMainThread$0(PlayerConnectionUtils.java:52) ~[paper.jar:git-iSpigot-PaperEdition]
[05.12 23:10:13.163] INFO: [kitpvp-1] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) ~[?:?]
[05.12 23:10:13.163] INFO: [kitpvp-1] at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
[05.12 23:10:13.163] INFO: [kitpvp-1] at org.imanity.imanityspigot.thread.TickTask.run(TickTask.java:18) ~[paper.jar:git-iSpigot-PaperEdition]
[05.12 23:10:13.164] INFO: [kitpvp-1] at org.imanity.imanityspigot.thread.ThreadHandler.executeTask(ThreadHandler.java:95) ~[paper.jar:git-iSpigot-PaperEdition]
[05.12 23:10:13.164] INFO: [kitpvp-1] at org.imanity.imanityspigot.thread.ThreadHandlerReentrant.executeTask(ThreadHandlerReentrant.java:25) ~[paper.jar:git-iSpigot-PaperEdition]
[05.12 23:10:13.164] INFO: [kitpvp-1] at org.imanity.imanityspigot.thread.ThreadHandler.executeNext(ThreadHandler.java:67) ~[paper.jar:git-iSpigot-PaperEdition]
[05.12 23:10:13.164] INFO: [kitpvp-1] at net.minecraft.server.v1_8_R3.MinecraftServer.executeNext(MinecraftServer.java:1931) ~[paper.jar:git-iSpigot-PaperEdition]
[05.12 23:10:13.164] INFO: [kitpvp-1] at org.imanity.imanityspigot.thread.ThreadHandler.awaitTasks(ThreadHandler.java:78) ~[paper.jar:git-iSpigot-PaperEdition]
[05.12 23:10:13.164] INFO: [kitpvp-1] at net.minecraft.server.v1_8_R3.MinecraftServer.sleepForTick(MinecraftServer.java:1904) ~[paper.jar:git-iSpigot-PaperEdition]
[05.12 23:10:13.164] INFO: [kitpvp-1] at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:840) ~[paper.jar:git-iSpigot-PaperEdition]
[05.12 23:10:13.164] INFO: [kitpvp-1] at java.lang.Thread.run(Thread.java:840) [?:?]
[05.12 23:10:19.750] INFO: CloudService [uniqueId=2f596110-d153-40b5-94f2-8601cda09952 task=lobby
In the wiki is present a field called .icon(SimpleResourceLocationIcon)
however it doesn't exist in the builder itself
Current builder for notifications:
Notification(String title, String description, String resourceLocation, Duration displayTime) {
this.title = title;
this.description = description;
this.resourceLocation = resourceLocation;
this.displayTime = displayTime;
}
Basically when it comes to putting a custom color in the bossbar mod it doesn't work, I have tried multiple colors, and without or with # at this moment I am trying with color (#FFFFAA00)
[19:45:47 WARN]: [Library] Task #63 for Library v2024.18.2 generated an exception
java.lang.RuntimeException: Unable to wrap value of type 'Color'!
at com.lunarclient.apollo.option.OptionsImpl.wrapValue(OptionsImpl.java:277) ~[?:?]
at com.lunarclient.apollo.option.OptionsImpl.postPacket(OptionsImpl.java:338) ~[?:?]
at com.lunarclient.apollo.option.OptionsImpl.set(OptionsImpl.java:140) ~[?:?]
at net.midesprojects.library.bossbar.BossBarHandler.create(BossBarHandler.kt:29) ~[?:?]
at net.midesprojects.library.bossbar.listener.BossBarListener$onPlayerJoin$1.run(BossBarListener.kt:25) ~[?:?]
at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:67) ~[spigot.jar:?]
at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:355) [spigot.jar:?]
at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:889) [spigot.jar:?]
at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:377) [spigot.jar:?]
at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:808) [spigot.jar:?]
at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:702) [spigot.jar:?]
at java.base/java.lang.Thread.run(Thread.java:829) [?:?]
1. It happens every time you enter, but it's only with the color.
thats my create bossbar method
fun create(player: Player): BossBar {
if (player.isRunningApollo()) {
modsModules.options.set(player.getApolloPlayer(), ModBossbar.ENABLED, true)
modsModules.options.set(player.getApolloPlayer(), ModBossbar.BAR_COLOR, "#FFFFAA00")
modsModules.options.set(player.getApolloPlayer(), ModBossbar.CUSTOM_BOSS_BAR, true)
modsModules.options.set(player.getApolloPlayer(), ModBossbar.RENDER_BAR, true)
}
return BossBar().apply {
create(player, adapter!!.getEntry(player)!!.text, adapter!!.getEntry(player)!!.health)
}
}
1.8
Spigot / Bukkit
1.8
Optifine
![Basically it looks like this is the latest version of Apollo.](https://gyazo.com/3cc5221676150975741fb92385824121)
![There you can see that the other part of the code does work.](https://gyazo.com/424c216c2f5441b3e34035db65187948)
Discord - @immutabled
No response
Running Apollo on 1.20.5+ causes
java.lang.NoSuchFieldError: Class org.bukkit.entity.EntityType does not have member field 'org.bukkit.entity.EntityType PRIMED_TNT'
due to PRIMED_TNT being renamed to TNT
Run on 1.20.5 and have some entity spawn.
N/A
1.20+
Spigot / Bukkit
1.20+
No response
No response
Discord - raikas
No response
If a user switches server in velocity , the transfer request does not show up on the client.
1. Join the velocity instance
2. Switch server ( i.e from lobby to a game mode )
3. Send a transfer request
1.8
Velocity
1.8
Optifine
No response
Discord - haeimalan
No response
The Glow Module, as described using the documentation, doesn't apply a glow with most colors, and for other colors it just display a black screen to the player that tries to see the glowing player.
I've also tried compiling the bukkit-example folder and use the /glow override command and it still didn't work properly.
1. Compile the bukkit-example plugin
2. Use it on a 1.8.9 paper / spigot server
3. Use the /glow override <player> command
4. The screen gets black whenever the client tries to look at the glowing player
1.8
Spigot / Bukkit
1.8
Optifine
No response
Discord - soladev
No response
Normally tnt that gets ignited by other explosions will have a shorter fuse time. However when the tnt countdown module is enabled in this plugin, all tnt will always have the same fuse time:
When doing /apollo reload, the client is sent a OverrideConfigurableSettingsMessage
for every option registered to server. Sending the client about 760 packets. Which freezes the whole game for a few seconds.
Apollo Version: 1.0.6
Lunar Version: 2.12.5-2401
Server and Client Version: 1.20.1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.