Jump to content
Scalbox

Posted

I'm doing some tests and a very strange thing happens, if you put any number after the group name
for example:

vip => vip0
elite => elite0
omega => omega0

then everything works.
Now I'm trying to understand the problem and solve it

Scalbox

Posted

1 hour ago, Scalbox said:

I'll do a test.
do you use carbon or oxide?

You can run these commands on all groups that you have assigned permissions for UltimateBed

oxide.revoke group <group> ultimatebeds.default
oxide.revoke group <group> ultimatebeds.vip
oxide.revoke group <group> ultimatebeds.elite
oxide.revoke group <group> ultimatebeds.omega

Change <group> to the name of the group, for all groups that have these permissions

Finally restart the plugin and reassign permissions to the groups.

It seems that the permissions have gotten dirty somehow and are not completely removed by oxide

Budapeshter

Posted

1 hour ago, Scalbox said:

Вы можете выполнять эти команды для всех групп, которым назначены разрешения для UltimateBed

oxide.revoke group <группа> ultimatebeds.default
oxide.revocation group <группа> ultimatebeds.vip
oxide.revoke group <группа> ultimatebeds.elite
oxide.revocation group <группа> ultimatebeds.omega

Измените <группа> на имя группы для всех групп с этими разрешениями

Наконец, перезапустите плагин и переназначьте разрешения группам.

Такое впечатление, что разрешения как-то испачкались и не до конца снимаются оксидом

Sorry it took me so long to respond, I'm busy.
I'm using both Carbon and Oxide, on Oxide this is the problem, on Carbon the plugin works kinda fine.

Scalbox

Posted

1 hour ago, Budapeshter said:

Sorry it took me so long to respond, I'm busy.
I'm using both Carbon and Oxide, on Oxide this is the problem, on Carbon the plugin works kinda fine.

have you tried removing the permissions?
I solved the problem like this

Budapeshter

Posted

16 hours ago, Scalbox said:

have you tried removing the permissions?
I solved the problem like this

Not yet, I'll try it tonight and let you know.

Scalbox

Posted

4 hours ago, Budapeshter said:

Not yet, I'll try it tonight and let you know.

perfect

Scalbox

Posted

Changed Status from Pending to No Response

Budapeshter

Posted

On 1/21/2025 at 1:35 PM, Scalbox said:

You can run these commands on all groups that you have assigned permissions for UltimateBed

oxide.revoke group <group> ultimatebeds.default
oxide.revoke group <group> ultimatebeds.vip
oxide.revoke group <group> ultimatebeds.elite
oxide.revoke group <group> ultimatebeds.omega

Change <group> to the name of the group, for all groups that have these permissions

Finally restart the plugin and reassign permissions to the groups.

It seems that the permissions have gotten dirty somehow and are not completely removed by oxide

Hi. Checked today, deleted all permissions, reloaded the plugin, issued permissions again, and nothing works as it should)
If I get the VIP group permission from the default group, then the cd remains from the default group until I reload the plugin.
This is on the OXIDE server.

Budapeshter

Posted

I have been administering the server in the 6th year already, I know how to manage permissions, there can be no mistake in such a simple operation on my part.

Budapeshter

Posted

private void OnUserPermissionGranted(string id, string permName)

if (_cachedRolePermission.Contains(steamId))
{
Puts($"[OnUserPermissionGranted] Permission '{permName}' granted for SteamID {steamId}. Cache entry found and removed.");
_cachedRolePermission.Remove(steamId);
}
else
{
Puts($"[OnUserPermissionGranted] Permission '{permName}' granted for SteamID {steamId}. No cache entry found.");
}



This hook does not work for me when I change my group . Added debug messages here to confirm this

Scalbox

Posted

The hook works without any problems, I personally use the plugin, here is a video where you can see that everything works, while I change the permissions in real time and everything works.
No one else has ever reported this problem
 

 

Scalbox

Posted

if the hook is not called it is because the plugin does not receive the hook call when you change the permissions.
Unload the plugin,

delete all the ultimatebed permissions you find, using the oxide show command,

then start the plugin and reassign the permissions in the various groups

Scalbox

Posted

do this with the latest version of the plugin which fixes some bugs

Budapeshter

Posted

I tried the plugin on a server where it was not previously installed. I used the standard configuration file that comes with the plugin.
The effect is the same, cd does not change by permissions

Budapeshter

Posted

{
  "Chat Command": [
    "ub",
    "ultimatebeds"
  ],
  "Chat Prefix": "UltimateBeds",
  "Disable Bag Gifting. Default false": false,
  "RolePermission": {
    "vip1": {
      "Priority. (lower = higher priority)": 1,
      "Player Max Sleeping Bag/Bed limit": 60,
      "Exclude camper beds from the limit. Default false": false,
      "Sleeping bag unlock time after placed": 60,
      "Bed unlock time after placed": 30,
      "Sleeping bag respawn cooldown": 40,
      "Bed respawn cooldown": 20,
      "Sleeping Bag Range: Radius within which to check other Sleeping Bags placed. Default: 50 (lower = more Sleeping Bags close to each other)": 50,
      "Bed Range: Radius within which to check other Beds placed. Default: 50 (lower = more Beds close to each other)": 50,
      "Sleeping Bag Decay Settings": {
        "Enable Custom Decay. Default: false": false,
        "Disable Decay. Default: false": false,
        "Delay before decay starts. Default: 24 hours": 24,
        "Duration of decay. Default: 12 hours": 12
      }
    },
    "vip2": {
      "Priority. (lower = higher priority)": 2,
      "Player Max Sleeping Bag/Bed limit": 40,
      "Exclude camper beds from the limit. Default false": false,
      "Sleeping bag unlock time after placed": 100,
      "Bed unlock time after placed": 50,
      "Sleeping bag respawn cooldown": 80,
      "Bed respawn cooldown": 40,
      "Sleeping Bag Range: Radius within which to check other Sleeping Bags placed. Default: 50 (lower = more Sleeping Bags close to each other)": 50,
      "Bed Range: Radius within which to check other Beds placed. Default: 50 (lower = more Beds close to each other)": 50,
      "Sleeping Bag Decay Settings": {
        "Enable Custom Decay. Default: false": false,
        "Disable Decay. Default: false": false,
        "Delay before decay starts. Default: 24 hours": 24,
        "Duration of decay. Default: 12 hours": 12
      }
    },
    "vip3": {
      "Priority. (lower = higher priority)": 3,
      "Player Max Sleeping Bag/Bed limit": 20,
      "Exclude camper beds from the limit. Default false": false,
      "Sleeping bag unlock time after placed": 200,
      "Bed unlock time after placed": 100,
      "Sleeping bag respawn cooldown": 180,
      "Bed respawn cooldown": 80,
      "Sleeping Bag Range: Radius within which to check other Sleeping Bags placed. Default: 50 (lower = more Sleeping Bags close to each other)": 50,
      "Bed Range: Radius within which to check other Beds placed. Default: 50 (lower = more Beds close to each other)": 50,
      "Sleeping Bag Decay Settings": {
        "Enable Custom Decay. Default: false": false,
        "Disable Decay. Default: false": false,
        "Delay before decay starts. Default: 24 hours": 24,
        "Duration of decay. Default: 12 hours": 12
      }
    },
    "default": {
      "Priority. (lower = higher priority)": 100,
      "Player Max Sleeping Bag/Bed limit": -1,
      "Exclude camper beds from the limit. Default false": false,
      "Sleeping bag unlock time after placed": 300,
      "Bed unlock time after placed": 120,
      "Sleeping bag respawn cooldown": 300,
      "Bed respawn cooldown": 120,
      "Sleeping Bag Range: Radius within which to check other Sleeping Bags placed. Default: 50 (lower = more Sleeping Bags close to each other)": 50,
      "Bed Range: Radius within which to check other Beds placed. Default: 50 (lower = more Beds close to each other)": 50,
      "Sleeping Bag Decay Settings": {
        "Enable Custom Decay. Default: false": false,
        "Disable Decay. Default: false": false,
        "Delay before decay starts. Default: 24 hours": 24,
        "Duration of decay. Default: 12 hours": 12
      }
    }
  },
  "VersionNumber": {
    "Major": 1,
    "Minor": 1,
    "Patch": 3
  }
}

 

Scalbox

Posted

Unfortunately I can't replicate the problem.
If you have a test server where you have this problem, I can debug it directly on your server and try to find the cause

Budapeshter

Posted

It's all about the ultimatebeds.admin permission,
If you give it to a player, he does not reset the permissions of the previous group.

Just tested this on a clean server

Budapeshter

Posted (edited)

On a working server tested the theory, not confirmed, cd does not reset back to default if the player's permission is taken away.
Okay, I don't see the point in determining why it doesn't work for me, it's easier to stay with the old plugin.
Thanks for the answers

Edited by Budapeshter
Scalbox

Posted

1 hour ago, Budapeshter said:

On a working server tested the theory, not confirmed, cd does not reset back to default if the player's permission is taken away.
Okay, I don't see the point in determining why it doesn't work for me, it's easier to stay with the old plugin.
Thanks for the answers

For me the important thing is to solve the problem.
I have already done remote debugging in the past for other customers.
So if it's okay with you, I am available to do remote debugging on your test server and understand why you are having problems.
If you want to proceed you can write to me on discord: scalbox

  • Like 1
Scalbox

Posted

Hi
I just updated the plugin which should solve the problem you reported.
Let me know if everything works now.
Thanks

Budapeshter

Posted

1 hour ago, Scalbox said:

Hi
I just updated the plugin which should solve the problem you reported.
Let me know if everything works now.
Thanks

Hi, will definitely test the plugin soon! Thanks!

1.7m

Downloads

Total number of downloads.

7.8k

Customers

Total customers served.

118.8k

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.