Jump to content

Bug not limiting protection to 24 hours

Closed 3.2.1

SlayersRust
SlayersRust

Posted

Bug not limiting protection to 24 hours. Players can get unlimited protection even though in the configuration it is set to only allow 24 Hours Max protection.

See screenshot

Here is my config:

{
  "Enable Logging": false,
  "Enable Console Messages": true,
  "Chat Message Icon ID": 76561198059348841,
  "Commands": {
    "Admin": "tc",
    "Protection": "pro",
    "Levels": "lev"
  },
  "Protection Settings": {
    "Protected entities": {
      "Buildings": true,
      "Deployables": true,
      "Loot Nodes": false,
      "Authed Players": false,
      "Unauthed Players": false,
      "NPCs": false,
      "Animals": false,
      "Vehicles": false,
      "Horses": false,
      "Electrical": true
    },
    "Protected from": {
      "Authorized Players": false,
      "Unauthorized Players": true,
      "Attack Heli": true
    },
    "Protection levels": [
      {
        "Rank": 1,
        "Online protection percentage (0-100)": 0.0,
        "Offline protection percentage (0-100)": 100.0,
        "Hourly cost per authorized player": 5.0,
        "Hourly cost per floor": 0.0,
        "Hourly base cost": 10.0,
        "Cost per damage protected": 0.0,
        "Max protection time (hours)": 24,
        "Delay for offline protection (seconds)": 600,
        "Delay after taking damage (seconds)": 600
      },
      {
        "Rank": 2,
        "Online protection percentage (0-100)": 0.0,
        "Offline protection percentage (0-100)": 100.0,
        "Hourly cost per authorized player": 0.0,
        "Hourly cost per floor": 0.0,
        "Hourly base cost": 0.0,
        "Cost per damage protected": 0.0,
        "Max protection time (hours)": 24,
        "Delay for offline protection (seconds)": 600,
        "Delay after taking damage (seconds)": 600
      }
    ],
    "Admin owners removed when deauthorized": false,
    "Award remaining balance when cupboard destroyed": true,
    "Allow max deposit": true,
    "Allow balance withdraw": true,
    "Allow protection pause": true,
    "Currency item (if not using ServerRewards or Economics)": "scrap"
  },
  "Image Settings": {
    "Status Protected": "https://i.imgur.com/yRpwabu.png",
    "Status Unprotected": "https://i.imgur.com/CVhQIOa.png",
    "Status Info": "https://i.imgur.com/WT3LEWe.png",
    "Status Toggle": "https://i.imgur.com/efiNWBE.png",
    "Status Refresh": "https://i.imgur.com/ZHvH2L8.png",
    "Info Owners": "https://i.imgur.com/3tKTjEU.png",
    "Info Costs": "https://i.imgur.com/Z45c9qB.png",
    "Info Check": "https://imgur.com/d4TZqSJ.png",
    "Info Cross": "https://i.imgur.com/vwdhgUb.png"
  },
  "Indicator Settings": {
    "Enabled": true,
    "ShowBalanceDeducted": true,
    "FontSize": 18,
    "AnchorMin": "0.94 0.9",
    "AnchorMax": "0.94 0.9",
    "OffsetMin": "0 0",
    "OffsetMax": "64 64"
  },
  "Plugin Integration": {
    "Economics": false,
    "Server Rewards": false,
    "Custom Status Framework": true,
    "Notify": false,
    "Clans": true
  },
  "Version": {
    "Major": 3,
    "Minor": 1,
    "Patch": 0
  }
}

Screenshot 2023-06-03 at 10.59.34 AM.png

Mr01sam

Posted

Hey thanks for bringing this up, and also posting your config (it helps a lot) I'll check it out soon.

Mr01sam

Posted

Sorry, I completely missed this! The problem is simply that your config file is out of date, when you load the plugin, you should see an error message like this:
image.png.169fcb5b544766209ca18d88023bbd9e.png
Simply follow these steps:

  1. Make a backup of your old config file
  2. Delete your old config file
  3. Reload the plugin, so that it generates a new one
  4. Modify the newly generated config to your liking, use your backup as reference

Let me know if that helps 🙂

Mr01sam

Posted

Changed Status from Pending to Closed

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.2k

Files Sold

Total number of files sold.

2m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.