ChangeSkinX

ChangeSkinX

446k Downloads

Skins stop working on server restart

Opened this issue ยท 38 comments

commented

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

commented

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.

commented

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

commented

I guess the changes I made will fix it. I'll upload it today after some tests.

commented

Do you still have this issue?

commented

Yeah, and it also seems to happen when I use a MySQL database instead of the SQLite storage.

commented

None

commented

Any errors?

commented

Found the issue. I'll fix it.

EDIT: the column type timestamp in mySQL ignores milliseconds.

commented

Sorry I didn't noticed that earlier.

commented

No worries! Can you link me to the fixed version?

commented

I tested it this morning, and it still isn't working. I tried the plugin with SQLite and MySQL, both have the same problem.

commented

Oh, I'm really sorry. I created this issue by fixing #5. I fixed it now. I'll upload a new version right away.

commented

No worries! Just send me the link and I'll try it out!

commented

Update is uploaded.

https://www.spigotmc.org/resources/changeskin.21469/update?update=87369

I hope it works now for you.

commented

It still doesn't work, with both MySQL or SQLite

commented

Do you regenerated the table?

commented

Yeah, I deleted them before testing

commented

It works now absolutely fine for me. Does the skin apply if you invoke /setskin ?

commented

I can change to any skin that is not already in the database, but not those that have been downloaded already

commented

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?

commented

Only after server restarts. Like, if I remove the tables in the database, everything works, until I restart the server.

commented

Could I get the startup log?

commented

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.

commented

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!

commented

Does it happen only to you? Which skin do you tried?

commented

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

commented

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.

commented

Thanks for the link, although it still doesn't work

commented

Oh, I forgot to say that I changed the table setup. You should regenerate the table.

commented

So is there a way to fix that? Should I use the Steve template, or the Alex template?

commented

Found it. You use a different skin model. Your skin has slim arms instead of square ones.

commented

Do you changed your skin?

commented

I tried using a random skin and everything works fine, so I'm really not sure what's wrong with my skin

commented

Yes I'll fix that.

commented

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!

commented

Thanks a lot for all the fixes, everything is now working great!