Jump to content

Category permission disables when server restarts

Pending 2.3.1

James Sawyer
James Sawyer

Posted

For example, when someone gets top 1 in a category, a group is created in the permissions. I give permission for the player who has top 1 heli kills to have permission to use an attack heli through the spawn heli plugin. It works perfectly! However, when the server is restarted, the permission to the spawn heli plugin is disabled and I need to enable it every time I restart my server. Does anyone know how I can persistently maintain permissions in the 'helikills' group (or any other)?
NOTE: I use the 'permissions manager' plugin.

  • Administrator
Steenamaroo

Posted

Hi,
Do you have DestroyGroupsOnUnload set to true?

James Sawyer

Posted (edited)

Thanks for replying! No, is set to false. 

Captura de tela 2025-03-21 222116.png

Edited by James Sawyer
James Sawyer

Posted

As I see, the holders stay on the groups with top 1 categories. But, the permissions on spawn heli plugin don't maintain the config. So, in fact, don't destroy groups on unload (restart the server), but, after restart the server, the config on spawn heli plugin don't maintain...

  • Administrator
Steenamaroo

Posted

I'm sorry, I'm not following.

When a player holds a #1 spot title for some category, PlayerRanks adds that player to a group reflecting the category name.
If you want that #1 player, at any given time, to have some special permission, you'd just grant the permission to the group that PlayerRanks has created.

When the player loses the # spot they'll lose their title and be removed from the group, therefore losing the permission.

James Sawyer

Posted (edited)

Yes, I understand that when #1 loses the title he is removed from the group. However, the same person was in the group with the heli spawn plugin config to spawn heli enabled. When the server restarts, he remains in the group, in fact, but the heli spawn config is disabled to the default (no config enabled, such as spawning a heli). On my server, whoever wins the 'heliKills' category title gains access to spawn a mini heli. However, every time the server restarts, this config is disabled for the owner of the 'heliKills' group and I need to reable the spawn mini heli again, every time the server restart

Edited by James Sawyer
  • Administrator
Steenamaroo

Posted

I'm more than happy to help, especially if there's an issue with my plugin
but I'm sorry, I don't understand what you're describing.

You keep mentioning heli spawn config being disabled? I don't know what you mean by this.

Does your PlayerRanks-created HeliKills group (which has your #1 player in it) retain the required permission for spawning helis?

If so, I'm afraid anything beyond that is an issue with your heli spawning plugin.

1.7m

Downloads

Total number of downloads.

8k

Customers

Total customers served.

121.1k

Files Sold

Total number of files sold.

2.5m

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.