Default skin config doesn't seem to work?Fixed
Hey, I really like the plugin idea but I'm having a bit of an issue with the default skin config.  On my server we run with Skinbox/Server Rewards and I don't really want our players to be able to skin their rocks at will without having to buy them through the Skinbox.  I would however like every new spawn's rock to have a custom skin on it with a link to our server's rules.  I've made the skin, I've pasted it's workshop id into the config, but I still get the default skin on respawns.  For reference I changed the vanilla config:

{
"DefaultRockSkin": 1
}

to:

{
"DefaultRockSkin": 1538455156
}

---

If I give myself the customrock permission and use the /rskin command I spawn with the proper skin, so I know the plugin is working.  I see you added the default skin part as an update as per someone's request.  Are you sure it's still working?  Does my config look like I did anything wrong?

Merged post

For anyone interested, our local dev Tori1157 has fixed up this issue for us.  He changed the line:

var b = ItemManager.CreateByName("rock", 1, skin);

to

var b = ItemManager.CreateByName("rock", 1, Convert.ToUInt32(Config["DefaultRockSkin"].ToString()));

And now the default rock skin is working like a charm.
A better fix would be to store the DefaultRockSkin in a global variable in the plugin, outside of methods instead of calling it each time. Right now it looks like the author is only setting it when a "kit" is given.
That's above my pay grade Wulfman, I could pass it on to Tori but I know you've already given him a lot of stuff and I'm not sure he's looking to maintain this guy's plugin.
This has been fixed, thank you for downloading the plugin! :)
Locked automatically