Code Monkey home page Code Monkey logo

Comments (7)

pdinklag avatar pdinklag commented on July 18, 2024

I'm gonna need more info here. I suppose you have Skins Restorer installed, but apparently a version without an API. Either an old one or something major has changed in a newer version.

What version of Skins Restorer are you using?

from minecraftstats.

wling-art avatar wling-art commented on July 18, 2024

I'm gonna need more info here. I suppose you have Skins Restorer installed, but apparently a version without an API. Either an old one or something major has changed in a newer version.

What version of Skins Restorer are you using?

latest: 15.0.6

I think it's the new version of Skins Restorer API but the plugin isn't adapted, right?

from minecraftstats.

pdinklag avatar pdinklag commented on July 18, 2024

是一个没有 API 的版本。在较新的版本中,旧的或重大的更改。
您使用的是哪个版本的

latest: 15.0.6

I think it's the new version of Skins Restorer API but the plugin isn't adapted, right?

I didn't adapt anything.

Apparently, according to their documentation, they changed the class name from SkinsRestorerAPI to just SkinsRestorer. I could not find out when they changed it. That is very unfortunate project management on their side, these kinds of changes break every and all plugins that use the API and make it unnecessarily complicated to support different versions...

But thank you for noting, I will have to adapt MinecraftStats for it.

from minecraftstats.

Athar42 avatar Athar42 commented on July 18, 2024

I'm doing a little "bump" on this one, as it seems to not be published yet... so I still post my log output just in case, but seems the same as the original author :

[23:14:14 WARN]: [MinecraftStats] Plugin MinecraftStats v3.3.0 generated an exception while executing task 64
java.lang.NoClassDefFoundError: net/skinsrestorer/api/SkinsRestorerAPI
        at de.pdinklag.mcstats.bukkit.SkinsRestorerProfileProvider.<init>(SkinsRestorerProfileProvider.java:15) ~[MinecraftStats-3.3.0.jar:?]
        at de.pdinklag.mcstats.bukkit.BukkitUpdater.getAuthenticProfileProvider(BukkitUpdater.java:47) ~[MinecraftStats-3.3.0.jar:?]
        at de.pdinklag.mcstats.Updater.run(Updater.java:368) ~[MinecraftStats-3.3.0.jar:?]
        at de.pdinklag.mcstats.bukkit.BukkitUpdater.run(BukkitUpdater.java:71) ~[MinecraftStats-3.3.0.jar:?]
        at de.pdinklag.mcstats.bukkit.BukkitUpdateTask.run(BukkitUpdateTask.java:17) ~[MinecraftStats-3.3.0.jar:?]
        at org.bukkit.craftbukkit.v1_20_R3.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.20.4.jar:git-Paper-497]
        at org.bukkit.craftbukkit.v1_20_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[paper-1.20.4.jar:git-Paper-497]
        at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[paper-1.20.4.jar:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
        at java.lang.Thread.run(Thread.java:1583) ~[?:?]
Caused by: java.lang.ClassNotFoundException: net.skinsrestorer.api.SkinsRestorerAPI
        at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:197) ~[paper-api-1.20.4-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:164) ~[paper-api-1.20.4-R0.1-SNAPSHOT.jar:?]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:526) ~[?:?]
        ... 11 more

Using :

  • Paper 1.20.4 build 497 (latest from this branch)
  • MinecraftStats 3.3.0 (also latest so :) )
  • SkinRestorer 15.0.15
[23:16:24 INFO]: [SkinsRestorer] ----------------------------------------------
[23:16:24 INFO]: [SkinsRestorer]     +==================+
[23:16:24 INFO]: [SkinsRestorer]     |   SkinsRestorer  |
[23:16:24 INFO]: [SkinsRestorer]     |------------------|
[23:16:24 INFO]: [SkinsRestorer]     |    Proxy Mode    |
[23:16:24 INFO]: [SkinsRestorer]     +==================+
[23:16:24 INFO]: [SkinsRestorer] ----------------------------------------------
[23:16:24 INFO]: [SkinsRestorer]     Version: 15.0.15
[23:16:24 INFO]: [SkinsRestorer]     Commit: fcfa8b9
[23:16:24 INFO]: [SkinsRestorer]     This is the latest version!
[23:16:24 INFO]: [SkinsRestorer] ----------------------------------------------

Is there any estimation on when a new build including the fix will be out ? (sorry for the ping @pdinklag )

Thanks :)

from minecraftstats.

Athar42 avatar Athar42 commented on July 18, 2024

From my testing so far, the error is still displayed, because the API isn't working when the server is in "Proxy Mode"

Make sure SkinsRestorer is not in "Proxy Mode" if you are using BungeeCord/Velocity.

So, there should be a check to wether enable or not the SkinsRestorer support depending on the functioning mode of it.

Edit : But there might be another solution, on the backend server :

Backend API:
You can enable the backend storage by creating a file called enableSkinStorageAPI.txt in SkinsRestorer folder (backend server -> ./plugins/SkinsRestorer/enableSkinStorageAPI.txt)
This is useful when using plugins like BedWars, Dynmap, etc. that need to get the skin through API from the backend server.
Keep in mind that connecting MySQL to the same database as the proxy is required for this to work!

from minecraftstats.

pdinklag avatar pdinklag commented on July 18, 2024

Build 3.3.1 is now released.

From my testing so far, the error is still displayed, because the API isn't working when the server is in "Proxy Mode"

I have genuinely no idea what this means. What is "Proxy Mode"? In any event, if SkinsRestorer doesn't work in "Proxy Mode", then why not not use it in "Proxy Mode"? Why would I fix something in MinecraftStats for SkinsRestorer for a scenario in which SkinsRestorer is not even supposed to work?

from minecraftstats.

Athar42 avatar Athar42 commented on July 18, 2024

The "Proxy mode" is used, in general, when you use... a proxy :D (sorry^^, like Velocity).

For example, this is from my Proxy (Velocity server) :
image

And on one of my backend server (lobby, creative, or any other, that's the same) :
image

And for "SR is not even supposed to work", well, it work in Proxy Mode (it's part of its job), but the API itself, in such mode, it's not :
https://skinsrestorer.net/docs/development/api#getting-issues

Make sure SkinsRestorer is not in "Proxy Mode" if you are using BungeeCord/Velocity.

And just in case you wonder "Why" I'm in proxy mode, that's the intended setup for when you use a proxy :
https://skinsrestorer.net/docs/installation/velocity

So sadly, SR didn't made it easy for developpers, they have to check in which state this plugin is and, if in "Proxy Mode", disable this (or the users, like me, should enable the "Backend API", but the player skin is not retrieved this way, don't know why. At least, the error just vanish)

from minecraftstats.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.