Skip to content

Deathmatch plugin does not load configuration from Deathmatch.json #82

@cuteSakuraHime

Description

@cuteSakuraHime

Hi, I've installed the Deathmatch plugin successfully, and it shows up in the plugin list.
I also created the configuration file as instructed at the following path:

/addons/counterstrikesharp/configs/plugins/Deathmatch/Deathmatch.json

However, it seems like the plugin is not reading or applying the config file. Settings such as weapon spawns or respawn time are not reflecting any changes from the config, and the server appears to be running with default behavior.

{
  "Save Players Weapons": false,
  "Database Connection": {
    "Host": "",
    "Port": 3306,
    "User": "",
    "Database": "",
    "Password": "",
    "SslMode": "Preferred"
  },
  "Gameplay Settings": {
    "Free For All": true,
    "Custom Modes": false,
    "Game Length": 30,
    "Random Selection Of Modes": false,
    "Map Start Custom Mode": 0,
    "New Mode Countdown": 10,
    "Hud Type": 1,
    "Default Weapons": 0,
    "Switch Weapons": true,
    "Allow Buymenu": false,
    "Respawn Players After New Mode": false,
    "Fast Weapon Equip": true,
    "Spawn Protection Color": "",
    "Display All Kill Feed": false
  },
  "Spawn System": {
    "Spawns Method": 0,
    "Team Spawns Separation": true,
    "Check Spawn Visibility": true,
    "Distance From Enemies": 300
  },
  "General Settings": {
    "Display Spawns Editor In Menu": true,
    "Hide Round Seconds": true,
    "Hide New Mode Countdown": false,
    "Block Radio Messages": true,
    "Block Player Ping": true,
    "Block Player ChatWheel": true,
    "Remove Breakable Entities": true,
    "Remove Decals": true,
    "Remove Kill Points Message": true,
    "Remove Respawn Sound": true,
    "Force Map End": false,
    "Restart Map On Plugin Load": false
  },
  "Sounds Settings": {
    "Weapon Cant Equip Sound": "sounds/ui/weapon_cant_buy.vsnd_c",
    "New Mode Sound": "sounds/music/3kliksphilip_01/bombtenseccount.vsnd_c"
  },
  "Custom Commands": {
    "Deatmatch Menu Commands": "dm,deathmatch",
    "Weapons Select Commands": "gun,weapon,w,g",
    "Weapons Select Shortcuts": {
      "ak": "weapon_ak47",
      "m4": "weapon_m4a1",
      "m4a1": "weapon_m4a1_silencer",
      "awp": "weapon_awp",
      "usp": "weapon_usp_silencer",
      "glock": "weapon_glock",
      "deagle": "weapon_deagle"
    }
  },
  "Players Gameplay Settings": {
    "VIP Flag": "@sakura/vip",
    "Non VIP Players": {
      "Respawn Time": 1.5,
      "Spawn Protection Time": 1.1,
      "Refill Ammo Kill": true,
      "Refill Ammo Headshot": true,
      "Refill Ammo in All Weapons": true,
      "Refill Health Kill": 20,
      "Refill Health Headshot": 40
    },
    "VIP Players": {
      "Respawn Time": 1.1,
      "Spawn Protection Time": 1.2,
      "Refill Ammo Kill": true,
      "Refill Ammo Headshot": true,
      "Refill Ammo in All Weapons": true,
      "Refill Health Kill": 25,
      "Refill Health Headshot": 50
    }
  },
  "Client Preferences": {
    "Kill Sound": {
      "Enabled": true,
      "Sound path": "sounds/ui/armsrace_kill_01.vsnd_c",
      "Default value": false,
      "Only for VIP": false,
      "Command Shortcuts": []
    },
    "Headshot Kill Sound": {
      "Enabled": true,
      "Sound path": "sounds/buttons/bell1.vsnd_c",
      "Default value": false,
      "Only for VIP": false,
      "Command Shortcuts": []
    },
    "Knife Kill Sound": {
      "Enabled": true,
      "Sound path": "sounds/ui/armsrace_final_kill_knife.vsnd_c",
      "Default value": false,
      "Only for VIP": false,
      "Command Shortcuts": []
    },
    "Hit Sound": {
      "Enabled": true,
      "Sound path": "sounds/ui/csgo_ui_contract_type2.vsnd_c",
      "Default value": false,
      "Only for VIP": false,
      "Command Shortcuts": []
    },
    "No Primary": {
      "Enabled": true,
      "Default value": false,
      "Only for VIP": false,
      "Command Shortcuts": [
        "noprimary",
        "primary"
      ]
    },
    "Only Headshot": {
      "Enabled": true,
      "Default value": false,
      "Only for VIP": false,
      "Command Shortcuts": [
        "hs",
        "onlyhs"
      ]
    },
    "Hud Messages": {
      "Enabled": true,
      "Default value": true,
      "Only for VIP": false,
      "Command Shortcuts": [
        "hud"
      ]
    },
    "Damage Info": {
      "Enabled": true,
      "Default value": true,
      "Only for VIP": false,
      "Command Shortcuts": [
        "damage",
        "dmg"
      ]
    }
  },
  "Custom Modes": {
    "0": {
      "Name": "Default",
      "Interval": 3000,
      "Armor": 2,
      "OnlyHS": false,
      "KnifeDamage": true,
      "RandomWeapons": false,
      "CenterMessageText": "",
      "PrimaryWeapons": [
        "weapon_ak47",
        "weapon_aug",
        "weapon_sg556",
        "weapon_galilar",
        "weapon_m4a1",
        "weapon_m4a1_silencer",
        "weapon_awp",
        "weapon_ssg08"
      ],
      "SecondaryWeapons": [
        "weapon_usp_silencer",
        "weapon_glock",
        "weapon_deagle",
        "weapon_tec9"
      ],
      "Utilities": [
      ],
      "ExecuteCommands": []
    },
    "1": {
      "Name": "Only Headshot",
      "Interval": 300,
      "Armor": 1,
      "OnlyHS": true,
      "KnifeDamage": false,
      "RandomWeapons": false,
      "CenterMessageText": "\u003Cfont class=\u0027fontSize-l\u0027 color=\u0027orange\u0027\u003EOnly Headshot\u003C/font\u003E\u003Cbr\u003ENext Mode: {NEXTMODE} in {REMAININGTIME}\u003Cbr\u003E",
      "PrimaryWeapons": [
        "weapon_aug",
        "weapon_sg556",
        "weapon_xm1014",
        "weapon_ak47",
        "weapon_famas",
        "weapon_galilar",
        "weapon_m4a1",
        "weapon_m4a1_silencer",
        "weapon_mp5sd",
        "weapon_mp7",
        "weapon_p90"
      ],
      "SecondaryWeapons": [
        "weapon_usp_silencer",
        "weapon_p250",
        "weapon_glock",
        "weapon_fiveseven",
        "weapon_hkp2000",
        "weapon_deagle"
      ],
      "Utilities": [],
      "ExecuteCommands": []
    },
    "2": {
      "Name": "Only Deagle",
      "Interval": 120,
      "Armor": 2,
      "OnlyHS": false,
      "KnifeDamage": true,
      "RandomWeapons": false,
      "CenterMessageText": "\u003Cfont class=\u0027fontSize-l\u0027 color=\u0027green\u0027\u003EOnly Deagle\u003C/font\u003E\u003Cbr\u003ENext Mode: {NEXTMODE} in {REMAININGTIME}\u003Cbr\u003E",
      "PrimaryWeapons": [],
      "SecondaryWeapons": [
        "weapon_deagle"
      ],
      "Utilities": [
        "weapon_flashbang",
        "weapon_healthshot"
      ],
      "ExecuteCommands": []
    },
    "3": {
      "Name": "Only Pistols",
      "Interval": 180,
      "Armor": 1,
      "OnlyHS": false,
      "KnifeDamage": true,
      "RandomWeapons": false,
      "CenterMessageText": "\u003Cfont class=\u0027fontSize-l\u0027 color=\u0027blue\u0027\u003EOnly Pistols\u003C/font\u003E\u003Cbr\u003ENext Mode: {NEXTMODE} in {REMAININGTIME}\u003Cbr\u003E",
      "PrimaryWeapons": [],
      "SecondaryWeapons": [
        "weapon_usp_silencer",
        "weapon_p250",
        "weapon_glock",
        "weapon_cz75a",
        "weapon_elite",
        "weapon_fiveseven",
        "weapon_tec9",
        "weapon_hkp2000"
      ],
      "Utilities": [],
      "ExecuteCommands": []
    },
    "4": {
      "Name": "Only SMG",
      "Interval": 200,
      "Armor": 2,
      "OnlyHS": false,
      "KnifeDamage": true,
      "RandomWeapons": true,
      "CenterMessageText": "\u003Cfont class=\u0027fontSize-l\u0027 color=\u0027yellow\u0027\u003EOnly SMG (Random Weapons)\u003C/font\u003E\u003Cbr\u003ENext Mode: {NEXTMODE} in {REMAININGTIME}\u003Cbr\u003E",
      "PrimaryWeapons": [
        "weapon_p90",
        "weapon_bizon",
        "weapon_mp5sd",
        "weapon_mp7",
        "weapon_mp9",
        "weapon_mac10",
        "weapon_ump45"
      ],
      "SecondaryWeapons": [],
      "Utilities": [
        "weapon_hegrenade",
        "weapon_flashbang",
        "weapon_healthshot"
      ],
      "ExecuteCommands": []
    }
  },
  "Weapons Restrict": {
    "Global Restrict": true,
    "Weapons": {
      "weapon_ak47": {
        "0": {
          "VIP": {
            "CT": 6,
            "T": 6,
            "Global": 12
          },
          "NonVIP": {
            "CT": 5,
            "T": 5,
            "Global": 10
          }
        },
        "1": {
          "VIP": {
            "CT": 5,
            "T": 5,
            "Global": 7
          },
          "NonVIP": {
            "CT": 4,
            "T": 4,
            "Global": 5
          }
        }
      },
      "weapon_awp": {
        "0": {
          "VIP": {
            "CT": 3,
            "T": 3,
            "Global": 4
          },
          "NonVIP": {
            "CT": 2,
            "T": 2,
            "Global": 3
          }
        }
      }
    }
  },
  "ConfigVersion": 1
}

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions