Jump to content

Ignore Permission Not Working

Closed 3.4.12 3.4.14

dustyhansen
dustyhansen

Posted

I have given admins the Ignore permission. It removes them from the auth list, but they still show as an owner and their online status is still counted toward offline protection. Shouldn't this remove them from the owner's list instead? I don't want an online admin to cause the base to get raided while they are doing admin work.

dustyhansen

Posted

It appears that you need to reload the plugin for this to take effect. Is there a way for you to fix this?

When a user has the permission assigned or removed, it should reflect in the plugin without reloading, otherwise it won't work properly as I can't reload the plugin every time someone adds or removes a group with this perm.

Mr01sam

Posted

This certainly sounds like strange behavior, this is how it is supposed to work:

If the admin built the structure originally (therefore they are the founder) then they will not be removed as founder when they deauth.

If the admin did not build the structure (some other player did) then they should be removed from the owner list when they deauth.

If it is not working like that, then it is indeed a bug.

dustyhansen

Posted

I don't think you are understanding the issue that I am raising, so let me try to explain it again.

To be clear, I am not talking about deauthing at all.

I am talking about the raidprotection.ignore permission.

When a user has this permission, it removes them from the list of owners, online, and authed. Is that expected behavior? Or should it leave them on the owners and auth list and just ignore their online status?

Also, when I assign a user this permission, the plugin doesn't see that they have the permission until I restart the plugin. So, every time someone gets assigned raidprotection.ignore or it gets removed from them, you have to reload the plugin for it to see the change. This makes the permission basically useless, because it can't be assigned/removed in real-time.

For example, if an admin switches in and out of admin mode, the plugin doesn't see that they changed. Or if a player switches in and out of PVE mode, the plugin doesn't see that they changed. The only way around this currently is to manually reload the plugin every 5 minutes or something so it can see if anyone got the ignore permission or had it removed.

Mr01sam

Posted

14 minutes ago, dustyhansen said:

I don't think you are understanding the issue that I am raising, so let me try to explain it again.

To be clear, I am not talking about deauthing at all.

I am talking about the raidprotection.ignore permission.

When a user has this permission, it removes them from the list of owners, online, and authed. Is that expected behavior? Or should it leave them on the owners and auth list and just ignore their online status?

Also, when I assign a user this permission, the plugin doesn't see that they have the permission until I restart the plugin. So, every time someone gets assigned raidprotection.ignore or it gets removed from them, you have to reload the plugin for it to see the change. This makes the permission basically useless, because it can't be assigned/removed in real-time.

For example, if an admin switches in and out of admin mode, the plugin doesn't see that they changed. Or if a player switches in and out of PVE mode, the plugin doesn't see that they changed. The only way around this currently is to manually reload the plugin every 5 minutes or something so it can see if anyone got the ignore permission or had it removed.

Ah okay, I see now, sorry for the misunderstanding.

So yes, if a player has the ignore permission then it is expected that they will not be counted as an owner on any tool cupboards they are authed on. And yes, it will also ignore their online status.

The plugin should not need to be reloaded in order for this to take effect - so it seems that is a bug. It looks like its failing to detect the group change for the admins in your situation, so there will need to be a fix for this.

  • Like 1
dustyhansen

Posted

Hey just checking in on this one as well for an update. I believe you said you were working on a Raid Protection update, but just curious.

Mr01sam

Posted

Hey, so I did try this the other day (as I was fixing some other bugs) and the ignore permission seemed to be working correctly... even without a plugin reload. I know its been awhile, can you walk me through the steps of what exactly you are doing with the permission. For instance, are you assigning it directly to a player, or are you assigning it to a group? Is the person you are assigning it to the "founder" of the base, or are they just an "owner". Are they also an admin?

dustyhansen

Posted

On 1/5/2025 at 10:30 AM, Mr01sam said:

Hey, so I did try this the other day (as I was fixing some other bugs) and the ignore permission seemed to be working correctly... even without a plugin reload. I know its been awhile, can you walk me through the steps of what exactly you are doing with the permission. For instance, are you assigning it directly to a player, or are you assigning it to a group? Is the person you are assigning it to the "founder" of the base, or are they just an "owner". Are they also an admin?

sorry, i forgot to reply here...

so i was assigning the ignore permission to groups, not individuals

i gave it to the admin group and the warmodepve group

the intent is that when an admin is online or a pve player (in a mixed clan/base) i didn't want the base to be raidable because they couldn't defend it

admins can switch in and out of admin mode with another plugin that adds them to and removes them from the admin group

players can switch in and out of pve mode with your plugin and the /flag command

so ideally, the ignore permission would be added and removed in real-time based on this

but, i was having the issue where when i switched out of admin mode, i was still being ignored by raid protection unless i reloaded the plugin

same thing with switching to pvp mode

does that make sense?

as for owner or founder, it could vary 

the admin may have built the base and placed the tc or the pve player may have done the same

it needs to be able to handle either situation, but refresh in real-time...

Mr01sam

Posted

Changed Status from Pending to Work in Progress

Mr01sam

Posted

Changed Status from Work in Progress to Closed

Changed Fixed In to 3.4.14

1.6m

Downloads

Total number of downloads.

7.7k

Customers

Total customers served.

115.6k

Files Sold

Total number of files sold.

2.4m

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.