Jump to content

MinutesSinceLastAttackToProtect

Pending 1.3.3

fullwiped
fullwiped

Posted (edited)

Hi, love the plugin.
Would you consider adding a grace period option, if a player disconnects within X minutes of being attacked or attacking someone, offline protection won't activate? It prevents combat-logging abuse. Thanks!

Also found a bug: the plugin's permissions don't appear in PermissionManager, but they do show up in AdminMenu. Might be worth looking into.

Edited by fullwiped
HunterZ

Posted

8 hours ago, fullwiped said:

Would you consider adding a grace period option, if a player disconnects within X minutes of being attacked or attacking someone, offline protection won't activate? It prevents combat-logging abuse. Thanks!

This is what the "Cooldown in minutes" config option does. It's probably not very descriptively named, but it is described in the documentation.

8 hours ago, fullwiped said:

Also found a bug: the plugin's permissions don't appear in PermissionManager, but they do show up in AdminMenu. Might be worth looking into.

Thanks I'll try to take a look. I'm pretty sure it shows up in Carbon panel's permission UI, and it also shows up in Carbon web panel's permissions UI.

HunterZ

Posted

The Permissions Manager issue is due to the fact that ORP runs as a Carbon plugin under Carbon.

Permissions Manager apparently does not currently recognize Carbon plugins.

I'll report this to the Permissions Manager developer.

In the meantime I suggest using Carbon permissions management facilities - it provides its own GUI via Carbon Panel.

HunterZ

Posted

Changed Status from Pending to Not a Bug

fullwiped

Posted

2 hours ago, HunterZ said:

This is what the "Cooldown in minutes" config option does. It's probably not very descriptively named, but it is described in the documentation.

Thanks I'll try to take a look. I'm pretty sure it shows up in Carbon panel's permission UI, and it also shows up in Carbon web panel's permissions UI.

Cooldown in minutes

 

3 hours ago, HunterZ said:

This is what the "Cooldown in minutes" config option does. It's probably not very descriptively named, but it is described in the documentation.

Thanks I'll try to take a look. I'm pretty sure it shows up in Carbon panel's permission UI, and it also shows up in Carbon web panel's permissions UI.

Hello,

I think there may be a misunderstanding.
I understand what the current "Cooldown in minutes" option does. My suggestion is different.
 

Here's the problem:

Let's say Cooldown in minutes is set to 10.

A player who wants to avoid being online raided can simply disconnect as soon as the first C4 explodes. On a large base, the raider will almost never finish the raid within 10 minutes.

After those 10 minutes expire, all subsequent C4, rockets, and other raid damage become ineffective because offline protection activates, even though the raid has been continuously active the entire time.

If I increase the cooldown to 20–30 minutes to compensate, then players who are genuinely offline complain that their bases remain unprotected for too long.

What I'm suggesting is a different behavior:

If the base receives any raid damage before the cooldown expires, the cooldown timer should reset back to the full value.
 

Example:

Cooldown = 10 minutes.

The defender disconnects after the first C4.

The raider continues using C4 and rockets every few minutes.

Every new raid hit resets the cooldown back to 10 minutes.

As long as raid damage continues, protection never activates.

Protection would only activate after 10 consecutive minutes without any raid damage.

This would allow legitimate raids to continue while still preventing players from abusing the system by disconnecting as soon as a raid starts.

fullwiped

Posted (edited)

    "Protection levels": [
      {
        "Rank": 1,
        "Online protection percentage (0-100)": 0.0,
        "Offline protection percentage (0-100)": 100.0,
        "Hourly cost per authorized player": 90.0,
        "Hourly cost per floor": 0.0,
        "Hourly base cost": 50.0,
        "Cost per damage protected": 0.0,
        "Max protection time (hours)": 24,
        "Delay for offline protection (seconds)": 120,
        "Delay after taking damage (seconds)": 240,
        "Damage resets timer when owner is offline": true,
        "Allow tugboat protection": false,
        "Allow barge protection (requires Barges plugin)": false,
        "Founder Limit": 1
      }
    ],



For example, RaidProtection (https://codefling.com/plugins/raid-protection) has a similar setting.

       "Delay after taking damage (seconds)": 240,

Edited by fullwiped
HunterZ

Posted

Changed Status from Not a Bug to Pending

HunterZ

Posted

I'll leave this open, but probably won't implement it...there are just way too many corner cases that would prevent it from being able to work well, and I'd end up with a ton of support requests due to confusion.

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.7m
Total downloads
Customers
11.5k
Customers served
Files Sold
164.1k
Total sales
Payments
3.5m
Processed total
×
×
  • 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.