Closed bugram closed 3 years ago
Can you please provide the full error when you run the command and test without any other plugin.
[06:38:10 ERROR]: Some errors occurred whilst posting event GameProfileRequestEvent{username=bugra, gameProfile=null}.
[06:38:10 ERROR]: #1:
java.lang.ClassCastException: class net.md_5.bungee.connection.LoginResult$Property cannot be cast to class com.velocitypowered.api.util.GameProfile$Property (net.md_5.bungee.connection.LoginResult$Property is in unnamed module of loader com.velocitypowered.proxy.plugin.PluginClassLoader @2881ad47; com.velocitypowered.api.util.GameProfile$Property is in unnamed module of loader 'app')
at skinsrestorer.velocity.utils.SkinApplier.updateProfileSkin(SkinApplier.java:27) ~[?:?]
at skinsrestorer.velocity.listener.GameProfileRequest.onGameProfileRequest(GameProfileRequest.java:48) ~[?:?]
at net.kyori.event.asm.generated.1b20f6a84b.GameProfileRequest-onGameProfileRequest-GameProfileRequestEvent-4.invoke(Unknown Source) ~[?:?]
at net.kyori.event.method.SimpleMethodSubscriptionAdapter$MethodEventSubscriber.invoke(SimpleMethodSubscriptionAdapter.java:148) ~[velocity-1.1.4.jar:1.1.4]
at net.kyori.event.SimpleEventBus.post(SimpleEventBus.java:107) ~[velocity-1.1.4.jar:1.1.4]
at com.velocitypowered.proxy.plugin.VelocityEventManager.fireEvent(VelocityEventManager.java:137) ~[velocity-1.1.4.jar:1.1.4]
at com.velocitypowered.proxy.plugin.VelocityEventManager.lambda$fire$1(VelocityEventManager.java:119) ~[velocity-1.1.4.jar:1.1.4]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]
at java.lang.Thread.run(Thread.java:834) [?:?]
[06:38:10 INFO]: [connected player] bugra (/192.168.0.20:64901) has connected
[06:38:10 INFO]: [server connection] bugra -> main has connected
[06:38:19 ERROR]: java.lang.ClassCastException: class net.md_5.bungee.connection.LoginResult$Property cannot be cast to class com.velocitypowered.api.util.GameProfile$Property (net.md_5.bungee.connection.LoginResult$Property is in unnamed module of loader com.velocitypowered.proxy.plugin.PluginClassLoader @2881ad47; com.velocitypowered.api.util.GameProfile$Property is in unnamed module of loader 'app')
[06:38:19 ERROR]: at skinsrestorer.velocity.utils.SkinApplier.applySkin(SkinApplier.java:55)
[06:38:19 ERROR]: at skinsrestorer.velocity.command.SkinCommand.lambda$setSkin$3(SkinCommand.java:217)
[06:38:19 ERROR]: at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
[06:38:19 ERROR]: at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
[06:38:19 ERROR]: at java.base/java.lang.Thread.run(Thread.java:834)
It only happens when I use snap u can test it also with skinrestorer.
Does this happen with the latest version of SkinsRestorer too? (14)
problem solved with latest snapshot skinrestorer (Build #297) non-snapshot Skinrestorer still having some troubles sorry for inconvenience... thanks
Just wanted to clarify what happened here. Skinsrestorer already has built in velocity support. So there is no reason for snap. Secondly I think we are performing class.forname checks and so skinsrestorer assumed you were using velocity, but only found bungeecord api as you were using snap. Just use the out-of-the-box velocity support next time. 👍🏻
Just wanted to clarify what happened here. Skinsrestorer already has built in velocity support. So there is no reason for snap. Secondly I think we are performing class.forname checks and so skinsrestorer assumed you were using velocity, but only found bungeecord api as you were using snap. Just use the out-of-the-box velocity support next time. 👍🏻
snap was not for skinrestorer it was for antibungeesteal but it made errors with skinrestorer so dev-release solved problem. If i put it in snap folder i gotta say skinrestorer(bungee) and dev-release wont solve the problem.
Used Version
8 build found at https://ci.minebench.de -->
Config
Environment description
Linux, java11
Full Log
What other programs/plugins are you running?
Full log explains
What is happening?
AFTER I USE SKIN COMMAND IT GIVES ME THIS ERROR
What did you expect to happen?
Skinrestorer should work immediately, it works but i gotta disconnect and reconnect from server.
Additional context
IMPORTANT: When I don't use snap plugin skinrestorer(velocity) works flawlessly...