SkinRestorer in Proxy mode

Error when starting the server when you have the skinrestorer in the proxy

This is a common error when you have installed Skinrestorer on your proxy server, the specific error would be as follows:

[17:25:54 ERROR]: Error occurred while enabling KatsuAvatars v1.1.2 (Is it up to date?)
java.lang.IllegalStateException: SkinsRestorer API is not initialized yet! For more info read this page: https://skinsrestorer.net/docs/troubleshooting
        at net.skinsrestorer.api.SkinsRestorerProvider.get(SkinsRestorerProvider.java:35) ~[SkinsRestorer work.jar:?]
        at com.github.maazapan.katsuavatars.avatar.integrations.IntegrationManager.load(IntegrationManager.java:41) ~[KatsuAvatars-1.1.2.jar:?]
        at com.github.maazapan.katsuavatars.KatsuAvatars.onEnable(KatsuAvatars.java:31) ~[KatsuAvatars-1.1.2.jar:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:287) ~[purpur-api-1.20.4-R0.1-SNAPSHOT.jar:?]
        at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:188) ~[purpur-1.20.4.jar:git-Purpur-2165]
        at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:104) ~[purpur-1.20.4.jar:git-Purpur-2165]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:507) ~[purpur-api-1.20.4-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.craftbukkit.v1_20_R3.CraftServer.enablePlugin(CraftServer.java:653) ~[purpur-1.20.4.jar:git-Purpur-2165]
        at org.bukkit.craftbukkit.v1_20_R3.CraftServer.enablePlugins(CraftServer.java:564) ~[purpur-1.20.4.jar:git-Purpur-2165]
        at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:675) ~[purpur-1.20.4.jar:git-Purpur-2165]
        at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:435) ~[purpur-1.20.4.jar:git-Purpur-2165]
        at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:346) ~[purpur-1.20.4.jar:git-Purpur-2165]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1146) ~[purpur-1.20.4.jar:git-Purpur-2165]
        at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:323) ~[purpur-1.20.4.jar:git-Purpur-2165]

To solve this error we will need a MySQL database to connect it with the SkinRestorer plugin, once we have it, these are the steps.

  1. Install the SkinRestorer plugin on both the proxy and the backend (Spigot, Paper, etc), it is necessary that they are on the servers for it to work.

  2. In the SkinRestorer configuration there is a part to connect it to the database, enter the data of your database, this will have to be done in the two servers.

  3. Now we start the server, and we will have the same error of the beginning, but a README file will be generated in the SkinRestorer configuration in the backend server (Spigot, Paper etc), this would be the file:

  1. Now we will follow the steps in the file that says to create a new txt file with a specific name with the name enableSkinStorageAPI.txt that will be in the path plugins/SkinRestorer/enableSkinStorageAPI.txt in the backend.

  1. Now it is necessary to restart the two proxy servers and the backend server, and ready the plugin should be working in SkinRestorer proxy mode.

Last updated