ThibmoRozier
Sets the default skin ID for newly crafted items.

Supported Games
GameServerKingsGameServerKings

Item Skin Setter Sets the default skin ID for newly crafted items.

This plugin was written after a suggestion by TFNBlackMarket

Console Commands

These commands only work from the server-side console and RCON. Usage from the client-side console is blocked.

  • iss_get <Item ID or ShortName> -- Retrieve the current custom default skin ID for an item.
  • iss_getskins <Item ID or ShortName> -- Retrieve the available skins for an item.

Configuration

You can remove entries you don't use. If you prefer to keep them in the config, setting the Skin Id to 0 (zero) will apply the default skin.

{
  "Bindings": [
    {
      "Item Shortname": "door.double.hinged.metal",
      "Skin Id": 1904509199
    },
    {
      "Item Shortname": "door.double.hinged.toptier",
      "Skin Id": 2318482252
    },
    {
      "Item Shortname": "door.double.hinged.wood",
      "Skin Id": 0
    },
    {
      "Item Shortname": "door.hinged.metal",
      "Skin Id": 0
    },
    {
      "Item Shortname": "door.hinged.toptier",
      "Skin Id": 0
    },
    // etc..
  ]
}

Localization

{
  "Err Invalid Args": "Invalid argument (count), please try again.",
  "Err Invalid Permission": "You do not have permission to use this command.",
  "Err Item Does Not Exist": "Item \"{0}\" does not exist.",
  "Err Skin Does Not Exist": "Skin with ID \"{0}\" does not exist.",
  "Msg Item Skin Default": "The skin of item \"{0}\" ({1}) is default.",
  "Msg Item Skin": "The skin of item \"{0}\" ({1}) is \"{2}\" ( Name = \"{3}\" )."
}

MIT License


Copyright (c) 2021 Thimo


Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:


The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.


THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.