Possibility to increase cost based on building size?Solved

I wonder if it's possible to scale the cost by how big the baze is? Making protection more expensive for bigger groups and cheaper for solo players?

Yup, it's already possible, there's a config setting called "Hourly building cost", this let's you define a cost that is charged per foundation per hour, so a base with more foundations will cost more. You can assign this as a global setting or to a specific protection level.

TypvFTj9JiMS6Qa.PNG mr01sam

Yup, it's already possible, there's a config setting called "Hourly building cost", this let's you define a cost that is charged per foundation per hour, so a base with more foundations will cost more. You can assign this as a global setting or to a specific protection level.

Thank you! 

Merged post

Another question, is it possible to revoke the raid protection completely if a player has not been playing for like a week?

I have problems with people joining the server and playing for a day to not come back more for the rest of the wipe, leaving active players with bases they cannot raid. I know I can make the protection cost resources but, if a player puts a lot of resource they might be protected for most of the wipe anyway.

I have an updated version in the works that allows you to set a "Max Protection Time". So even if a player has enough resources to have protection for an entire wipe, if you set the max protection time to 48 hours, they will need to login and replenish it every 48 hours or else they won't be protected.

So stay tuned for that update!

TypvFTj9JiMS6Qa.PNG mr01sam

I have an updated version in the works that allows you to set a "Max Protection Time". So even if a player has enough resources to have protection for an entire wipe, if you set the max protection time to 48 hours, they will need to login and replenish it every 48 hours or else they won't be protected.

So stay tuned for that update!

Glad to hear, are you available on Discord for some support?

I am trying to add another protection level but I'm most likely not doing it correct.

It would be easier to communicate through Discord.



Merged post

I am trying to add another permission group called ''Supporter'' that has a discount on raid protection, but I don't understand where in the config I should add it. I tried this but it's giving me errors when reloading the plugin. Any ideas?

 

Note: I know the line postitions are not correct in the example here but it was correct in my config.

{
  "General settings": {
    "Currency item ID (if not using economics)": -932201673,
    "Use economics balance (requires economics plugin)": false,
    "Use reward points (requires server rewards plugin)": false
  },
  "Protection settings": {
    "Protection levels": {
      "default": {
        "Online protection percentage (0-100)": 0.0,
        "Offline protection percentage (0-100)": 100.0
      }
    },
    "Delay after taking damage (seconds)": 10,
    "Delay for offline protection (seconds)": 60,
    "Protect buildings and deployables (true/false)": true,
    "Protect players (true/false)": true,
    "Protect vehicles and horses (true/false)": true,
    "Protect traps and electronics (true/false)": true
  },
  "Cost settings": {
    "Material cost multipliers": {
      "twig": 0.2,
      "wood": 0.3,
      "stone": 0.4,
      "metal": 0.5,
      "armored": 0.6
    },
    "Default hourly building cost": 1,
    "Default hourly base cost": 0.0,
    "Default structure damage cost": 0.0
  },
"supporter": {
        "Online protection percentage (0-100)": 0.0,
        "Offline protection percentage (0-100)": 100.0
      }
    },
    "Delay after taking damage (seconds)": 10,
    "Delay for offline protection (seconds)": 60,
    "Protect buildings and deployables (true/false)": true,
    "Protect players (true/false)": true,
    "Protect vehicles and horses (true/false)": true,
    "Protect traps and electronics (true/false)": true
  },
  "Cost settings": {
    "Material cost multipliers": {
      "twig": 0.2,
      "wood": 0.3,
      "stone": 0.4,
      "metal": 0.5,
      "armored": 0.6
    },
    "Default hourly building cost": 0.5,
    "Default hourly base cost": 0.0,
    "Default structure damage cost": 0.0
  },
  "Indicator settings": {
    "Enabled": true,
    "Persistent": false,
    "Image url": "https://i.imgur.com/ue05FGg.png"
  }
}

 

I will message you

Locked automatically