Autokit no longer works.Solved

I've had my server for a while now and autokit worked perfectly until one of the updates in december. It just won't work anymore. Have tried everything but it still won't give players the items on spawn. I even uninstalled all the other plugins and started with Rust Kits so it wouldn't be any other plugin interfering with it, but it's the same. The other kits work without issues. I can't see anything wrong in the config and don't know what to do.

Here is my config:

{
  "_kits": {
    "autokit": {
      "Name": "autokit",
      "Description": "",
      "RequiredPermission": "",
      "MaximumUses": 0,
      "RequiredAuth": 0,
      "Cooldown": 0,
      "Cost": 0,
      "IsHidden": true,
      "CopyPasteFile": "",
      "KitImage": "",
      "MainItems": [
        {
          "Shortname": "ammo.pistol.hv",
          "DisplayName": null,
          "Skin": 0,
          "Amount": 200,
          "Condition": 0,
          "MaxCondition": 0,
          "Ammo": 0,
          "Ammotype": null,
          "Position": 0,
          "Frequency": -1,
          "BlueprintShortname": null,
          "Text": null,
          "Contents": null
        }
      ],
      "WearItems": [
        {
          "Shortname": "hat.cap",
          "DisplayName": "Charitable Rust 2018 Cap",
          "Skin": 1565217605,
          "Amount": 1,
          "Condition": 0,
          "MaxCondition": 0,
          "Ammo": 0,
          "Ammotype": null,
          "Position": 0,
          "Frequency": -1,
          "BlueprintShortname": null,
          "Text": null,
          "Contents": null
        },
        {
          "Shortname": "mask.bandana",
          "DisplayName": "Skull Bandana",
          "Skin": 10064,
          "Amount": 1,
          "Condition": 0,
          "MaxCondition": 0,
          "Ammo": 0,
          "Ammotype": null,
          "Position": 1,
          "Frequency": -1,
          "BlueprintShortname": null,
          "Text": null,
          "Contents": null
        },
        {
          "Shortname": "hoodie",
          "DisplayName": "Blackout Hoodie",
          "Skin": 2080975449,
          "Amount": 1,
          "Condition": 0,
          "MaxCondition": 0,
          "Ammo": 0,
          "Ammotype": null,
          "Position": 2,
          "Frequency": -1,
          "BlueprintShortname": null,
          "Text": null,
          "Contents": null
        },
        {
          "Shortname": "burlap.gloves",
          "DisplayName": "Blackout Gloves",
          "Skin": 2090790324,
          "Amount": 1,
          "Condition": 0,
          "MaxCondition": 0,
          "Ammo": 0,
          "Ammotype": null,
          "Position": 3,
          "Frequency": -1,
          "BlueprintShortname": null,
          "Text": null,
          "Contents": null
        },
        {
          "Shortname": "pants",
          "DisplayName": "Blackout Pants",
          "Skin": 2080977144,
          "Amount": 1,
          "Condition": 0,
          "MaxCondition": 0,
          "Ammo": 0,
          "Ammotype": null,
          "Position": 4,
          "Frequency": -1,
          "BlueprintShortname": null,
          "Text": null,
          "Contents": null
        },
        {
          "Shortname": "shoes.boots",
          "DisplayName": "Black Boots",
          "Skin": 10023,
          "Amount": 1,
          "Condition": 0,
          "MaxCondition": 0,
          "Ammo": 0,
          "Ammotype": null,
          "Position": 5,
          "Frequency": -1,
          "BlueprintShortname": null,
          "Text": null,
          "Contents": null
        }
      ],
      "BeltItems": [
        {
          "Shortname": "axe.salvaged",
          "DisplayName": null,
          "Skin": 0,
          "Amount": 1,
          "Condition": 500,
          "MaxCondition": 500,
          "Ammo": 0,
          "Ammotype": null,
          "Position": 1,
          "Frequency": -1,
          "BlueprintShortname": null,
          "Text": null,
          "Contents": null
        },
        {
          "Shortname": "icepick.salvaged",
          "DisplayName": null,
          "Skin": 0,
          "Amount": 1,
          "Condition": 500,
          "MaxCondition": 500,
          "Ammo": 0,
          "Ammotype": null,
          "Position": 2,
          "Frequency": -1,
          "BlueprintShortname": null,
          "Text": null,
          "Contents": null
        },
        {
          "Shortname": "black.raspberries",
          "DisplayName": null,
          "Skin": 0,
          "Amount": 50,
          "Condition": 0,
          "MaxCondition": 0,
          "Ammo": 0,
          "Ammotype": null,
          "Position": 3,
          "Frequency": -1,
          "BlueprintShortname": null,
          "Text": null,
          "Contents": null
        },
        {
          "Shortname": "syringe.medical",
          "DisplayName": null,
          "Skin": 0,
          "Amount": 20,
          "Condition": 0,
          "MaxCondition": 0,
          "Ammo": 0,
          "Ammotype": null,
          "Position": 4,
          "Frequency": -1,
          "BlueprintShortname": null,
          "Text": null,
          "Contents": null
        },
        {
          "Shortname": "largemedkit",
          "DisplayName": null,
          "Skin": 0,
          "Amount": 10,
          "Condition": 0,
          "MaxCondition": 0,
          "Ammo": 0,
          "Ammotype": null,
          "Position": 5,
          "Frequency": -1,
          "BlueprintShortname": null,
          "Text": null,
          "Contents": null
        },
        {
          "Shortname": "smg.2",
          "DisplayName": null,
          "Skin": 0,
          "Amount": 1,
          "Condition": 100,
          "MaxCondition": 100,
          "Ammo": 30,
          "Ammotype": "ammo.pistol.hv",
          "Position": 0,
          "Frequency": -1,
          "BlueprintShortname": null,
          "Text": null,
          "Contents": [
            {
              "Shortname": "weapon.mod.muzzleboost",
              "DisplayName": null,
              "Skin": 0,
              "Amount": 1,
              "Condition": 97.75,
              "MaxCondition": 100,
              "Ammo": 0,
              "Ammotype": null,
              "Position": 0,
              "Frequency": -1,
              "BlueprintShortname": null,
              "Text": null,
              "Contents": null
            },
            {
              "Shortname": "weapon.mod.lasersight",
              "DisplayName": null,
              "Skin": 0,
              "Amount": 1,
              "Condition": 300,
              "MaxCondition": 300,
              "Ammo": 0,
              "Ammotype": null,
              "Position": 1,
              "Frequency": -1,
              "BlueprintShortname": null,
              "Text": null,
              "Contents": null
            },
            {
              "Shortname": "weapon.mod.extendedmags",
              "DisplayName": null,
              "Skin": 0,
              "Amount": 1,
              "Condition": 100,
              "MaxCondition": 100,
              "Ammo": 0,
              "Ammotype": null,
              "Position": 2,
              "Frequency": -1,
              "BlueprintShortname": null,
              "Text": null,
              "Contents": null
            },
            {
              "Shortname": "weapon.mod.simplesight",
              "DisplayName": null,
              "Skin": 0,
              "Amount": 1,
              "Condition": 300,
              "MaxCondition": 300,
              "Ammo": 0,
              "Ammotype": null,
              "Position": 3,
              "Frequency": -1,
              "BlueprintShortname": null,
              "Text": null,
              "Contents": null
            }
          ]
        }
      ]
    },
    "Starter Base": {
      "Name": "Starter Base",
      "Description": "",
      "RequiredPermission": "",
      "MaximumUses": 0,
      "RequiredAuth": 2,
      "Cooldown": 3600,
      "Cost": 0,
      "IsHidden": false,
      "CopyPasteFile": "",
      "KitImage": "https://i.imgur.com/MJ2DzWc.png",
      "MainItems": [
        {
          "Shortname": "wood",
          "DisplayName": null,
          "Skin": 0,
          "Amount": 30000,
          "Condition": 0,
          "MaxCondition": 0,
          "Ammo": 0,
          "Ammotype": null,
          "Position": 0,
          "Frequency": -1,
          "BlueprintShortname": null,
          "Text": null,
          "Contents": null
        },
        {
          "Shortname": "stones",
          "DisplayName": null,
          "Skin": 0,
          "Amount": 15000,
          "Condition": 0,
          "MaxCondition": 0,
          "Ammo": 0,
          "Ammotype": null,
          "Position": 1,
          "Frequency": -1,
          "BlueprintShortname": null,
          "Text": null,
          "Contents": null
        },
        {
          "Shortname": "metal.fragments",
          "DisplayName": null,
          "Skin": 0,
          "Amount": 10000,
          "Condition": 0,
          "MaxCondition": 0,
          "Ammo": 0,
          "Ammotype": null,
          "Position": 2,
          "Frequency": -1,
          "BlueprintShortname": null,
          "Text": null,
          "Contents": null
        },
        {
          "Shortname": "metal.refined",
          "DisplayName": null,
          "Skin": 0,
          "Amount": 3000,
          "Condition": 0,
          "MaxCondition": 0,
          "Ammo": 0,
          "Ammotype": null,
          "Position": 3,
          "Frequency": -1,
          "BlueprintShortname": null,
          "Text": null,
          "Contents": null
        },
        {
          "Shortname": "door.hinged.metal",
          "DisplayName": null,
          "Skin": 0,
          "Amount": 1,
          "Condition": 100,
          "MaxCondition": 100,
          "Ammo": 0,
          "Ammotype": null,
          "Position": 4,
          "Frequency": -1,
          "BlueprintShortname": null,
          "Text": null,
          "Contents": null
        },
        {
          "Shortname": "wall.frame.garagedoor",
          "DisplayName": null,
          "Skin": 0,
          "Amount": 1,
          "Condition": 100,
          "MaxCondition": 100,
          "Ammo": 0,
          "Ammotype": null,
          "Position": 5,
          "Frequency": -1,
          "BlueprintShortname": null,
          "Text": null,
          "Contents": null
        },
        {
          "Shortname": "cupboard.tool",
          "DisplayName": null,
          "Skin": 0,
          "Amount": 1,
          "Condition": 0,
          "MaxCondition": 0,
          "Ammo": 0,
          "Ammotype": null,
          "Position": 6,
          "Frequency": -1,
          "BlueprintShortname": null,
          "Text": null,
          "Contents": null
        },
        {
          "Shortname": "guntrap",
          "DisplayName": null,
          "Skin": 0,
          "Amount": 2,
          "Condition": 200,
          "MaxCondition": 200,
          "Ammo": 0,
          "Ammotype": null,
          "Position": 7,
          "Frequency": -1,
          "BlueprintShortname": null,
          "Text": null,
          "Contents": null
        },
        {
          "Shortname": "ammo.handmade.shell",
          "DisplayName": null,
          "Skin": 0,
          "Amount": 100,
          "Condition": 0,
          "MaxCondition": 0,
          "Ammo": 0,
          "Ammotype": null,
          "Position": 8,
          "Frequency": -1,
          "BlueprintShortname": null,
          "Text": null,
          "Contents": null
        }
      ],
      "WearItems": [],
      "BeltItems": []
    }
  }
}

Interesting that you have no permission set for the autokit; I set up a kits.autokit permission and granted this to the default group. I don't think this would affect your users ability to receive the kit though.

The above is your data file. What's your Kits.json config file look like? Do you have your autokit listed in the "Autokits ordered by priority" parameter?

5JyADWu3YSZbD7U.png flintmonkey

Interesting that you have no permission set for the autokit; I set up a kits.autokit permission and granted this to the default group. I don't think this would affect your users ability to receive the kit though.

The above is your data file. What's your Kits.json config file look like? Do you have your autokit listed in the "Autokits ordered by priority" parameter?

I did the same thing but also have a max use (10) and a cooldown (3600) to stop players repeat suicide to accumulate kit, i also have it not hidden so that they can see how many they have left,
No problems encountered so far after wipe

I found the issue. Somehow the update rolled back my config settings in Kits.json to default. All I had to do was to manually put the kit names back under priority. Have no clue how I missed  that, but that's life.

nMyfFlEnglczTD3.jpg pookins

I did the same thing but also have a max use (10) and a cooldown (3600) to stop players repeat suicide to accumulate kit, i also have it not hidden so that they can see how many they have left,
No problems encountered so far after wipe

I also have a cooldown set and have it default to a second, more minimal kit if the player suicides/dies. I like the idea of a max use. Do you have that set for the wipe duration?

5MZ2dQBftzD5TDJ.png flintmonkey

I also have a cooldown set and have it default to a second, more minimal kit if the player suicides/dies. I like the idea of a max use. Do you have that set for the wipe duration?

Yes they get a max use of 10 autokits for the wipe, but there are other kits available using the PlayerRanking@Ankawi plugin (with permissions) so they would be able to access those kits just by spending more time on the server,

krihak

I found the issue. Somehow the update rolled back my config settings in Kits.json to default. All I had to do was to manually put the kit names back under priority. Have no clue how I missed  that, but that's life.

Sometimes it is something simple we miss while looking for the complicated reason, Glad you got it fixed  :)

Locked automatically