Skins stop working on server restart
Opened this issue ยท 38 comments
When I first added the plugin, everything worked perfectly, skins loaded with no problems. Though, now that I restarted the server, skins don't load anymore. I run an offline Spigot 1.9 server.
I have noticed that if I stop the server, delete the "ChangeSkin.db" file, and start it again, the plugin works just as well as the first time I ran it. But I don't want to delete that file every time I have to restart the server, as it gets annoying.
I use the plugin version 0.8, because version 0.9 throws an error.
v 0.9 error: http://hastebin.com/eyatodemaj.sm
Oh wow, sorry about that, I thought I was using spigot, but a closer look at the logs show I had been using CraftBukkit all along. I'll switch over to Spigot right away
So I'm now running Spigot and ChangeSkin v0.9, but I still have the same issue.
But I don't want to delete that file every time I have to restart the server, as it gets annoying.
Of course.
The problem is that. Version 0.9 expects a Spigot servers, but you are running craftbukkit.
Related to 461eb7d
Yeah, and it also seems to happen when I use a MySQL database instead of the SQLite storage.
Found the issue. I'll fix it.
EDIT: the column type timestamp in mySQL ignores milliseconds.
I tested it this morning, and it still isn't working. I tried the plugin with SQLite and MySQL, both have the same problem.
Oh, I'm really sorry. I created this issue by fixing #5. I fixed it now. I'll upload a new version right away.
Update is uploaded.
https://www.spigotmc.org/resources/changeskin.21469/update?update=87369
I hope it works now for you.
It works now absolutely fine for me. Does the skin apply if you invoke /setskin ?
I can change to any skin that is not already in the database, but not those that have been downloaded already
I should have fixed this in 0.9.3. Do you have this effect only after server restarts or do you just receive no new skin if you invoke that command?
Only after server restarts. Like, if I remove the tables in the database, everything works, until I restart the server.
Do you receive an empty skin or keep your old one?
Sorry for all the questions. I thought I fixed it in 0.9.3. After that update I cannot longer reproduce this issue.
Well I don't really know if it's an empty skin. It's the default Steve skin, and not my own.
No worries, I'll help however I can!
I'm not sure if it's only with me, I will check a little later with a friend, though I think it's everyone. I try my own skin, and other random skins. Like I said, if I delete the tables before restarting the server, any skin works
So it only seems to be happening to me, but I don't know what could be causing it. I have a valid Minecraft account and everything with a skin.
Oh, I forgot to say that I changed the table setup. You should regenerate the table.
So is there a way to fix that? Should I use the Steve template, or the Alex template?
Found it. You use a different skin model. Your skin has slim arms instead of square ones.
I tried using a random skin and everything works fine, so I'm really not sure what's wrong with my skin
Ohh, I thought I needed to change my skin model or something. But let me know when it's fixed, I'll try it out!