Jail as punishment not workingFixed

Hello, I'm trying this plugin with jail, and if someone kills me, plugin writes "You were jailed for...", but nothing happens. Here is my config, just set jail=true, 180sec and name. Name of jail is "jail"(is this right?) (jail config in second code sample)

{
  "Punish for dying": {
    "Ban as punishment": false,
    "Hurt as punishment": 0.0,
    "Kick as punishment": false,
    "Jail as punishment": false,
    "Name of jail/prison to use": "",
    "Amount of time to jail": 10,
    "Slap as punishment": false,
    "Amount of damage per slap": 10,
    "Intensity of each slap": 5,
    "Number of times to slap": 1,
    "Economics withdrawl": false,
    "Economics amount": 1000,
    "Server Rewards withdrawl": false,
    "Server Rewards amount": 100
  },
  "Punish for killing other players": {
    "Ban as punishment": false,
    "Hurt as punishment": 0.0,
    "Kick as punishment": false,
    "Jail as punishment": true,
    "Name of jail/prison to use": "jail",
    "Amount of time to jail": 180,
    "Slap as punishment": false,
    "Amount of damage per slap": 10,
    "Intensity of each slap": 5,
    "Number of times to slap": 1,
    "Economics withdrawl": false,
    "Economics amount": 1000,
    "Server Rewards withdrawl": false,
    "Server Rewards amount": 100
  },
  "Use permission system": false
}

prison config:

{
  "prisons": {
    "jail": {
      "zoneId": "18208308",
      "spawnFile": "jail",
      "inmateKit": "jail",
      "x": 1079.414,
      "y": 0.6097451,
      "z": -71.23849,
      "radius": 70.0,
      "occupiedCells": {
        "0": false,
        "1": false,
        "2": false,
        "3": false,
        "4": false,
        "5": false,
        "6": false,
        "7": false,
        "8": false,
        "9": false,
        "10": false,
        "11": false
      }
    }
  }
}

Thank you for any advice

Thanks for the report, I'll take a look.

Merged post

Please try the latest update, it should resolve your issue.

Hello, yes it works well now. Thank you! But I found another bug :-) If player commits suicide, he becomes a prisoner instantly, can you take a look again please? :-) Thank you again.

Please open a new thread with that so I can keep track of it, thanks.

Locked automatically