Kits dont hide?Solved

i check the data file, it keeps making all the kits visible and reverts the data file to "IsHidden": true,

 

no matter if i change them to true ingame with the UI or by editing it in the notepad++ it always reverts them all to false.

 

removed myself as an owner, i could still create kits and redeem them all and see them all.

Change the Config to show kits with permission to non permission holders true or false,

{
  "Currency used for purchase costs (Scrap, Economics, ServerRewards)": "Scrap",
  "Log kits given": true,
  "Wipe player data when the server is wiped": false,
  "Use the Kits UI menu": true,
  "Allow players to toggle auto-kits on spawn": false,
  "Show kits with permissions assigned to players without the permission": true,
  "Autokits ordered by priority": [
    "autokit",
    "OtherKitName"​


Edit the DATA file with the plugin unloaded or the server down or it will not save any changes,
The files are now in a folder in data section and contains two json files
kits_data.json (which you edit)
player_data.json (which you can delete after the wipe to clear players usage(s) it is recreated when server reloads plugin on startup

I  always (with files this large) copy/paste it into a "new text" file so i can edit it the way i want it then (making sure plugin is unloaded) replace the original with the edited one/save/reload plugin.
"_kits": {
    "autokit": {
      "Name": "autokit",
      "Description": "a nice surprise",
      "RequiredPermission": "",
      "MaximumUses": 10,
      "RequiredAuth": 0,
      "Cooldown": 3600,
      "Cost": 0,
      "IsHidden": true,
      "CopyPasteFile": "",
      "KitImage": "",
      "MainItems": [
        {
          "Shortname": "blueberries",
          "Skin": 0,
          "Amount": 200,
          "Condition": 0.0,
          "MaxCondition": 0.0,
          "Ammo": 0,
          "Ammotype": null,
          "Position": 0,
          "Frequency": -1,
          "BlueprintShortname": null,
          "Contents": null
        },
        {​

*testing
I removed my permission as admin and got the chat message "You must either be a admin, or have the admin permission to use that command"   when i typed /kit add <kitname> ,
When i typed /kit list it only showed me the kits that were available to me or i had the permissions for (not admin or autokit)

thank you Pookins, i realized that like 30 minutes later after i saw that happen where it kept reverting, then i was like hmm maybe the plugin doesnt like being loaded on the fly and then edited configs.

 

i was like OH CRAP! xD

i feel bad that stupid threads like mine clog K1llyou's email > _ <

LunaZE

thank you Pookins, i realized that like 30 minutes later after i saw that happen where it kept reverting, then i was like hmm maybe the plugin doesnt like being loaded on the fly and then edited configs.

 

i was like OH CRAP! xD

i feel bad that stupid threads like mine clog K1llyou's email > _ <

Can you change the status to "solved"  saves coming back to it :)

Locked automatically