Jump to content

Persistent Configuration + Permissions Error?

Not a Bug 1.0.0

WarisGG
WarisGG

Posted

Hi, I added your plugin to my server and configured it with certain permissions just for testing.

It turns out that all users have the configuration and are using it. When I was notified, I disabled the plugin. However, all weapons are still reloading with the modified amounts.

I'm about to restart the server now to see if it gets fixed after the reboot.

I configured it like this:

{
  "Weapons": [
    {
      "weaponName": "rifle.ak",
      "capacity": 100,
      "defaultCapacity": 30,
      "permission": "pack_bel"
    },
    {
      "weaponName": "rifle.l96",
      "capacity": 14,
      "defaultCapacity": 5,
      "permission": "pack_bel"
    },
    {
      "weaponName": "lmg.m249",
      "capacity": 180,
      "defaultCapacity": 100,
      "permission": "pack_bel"
    },
    {
      "weaponName": "rocket.launcher",
      "capacity": 3,
      "defaultCapacity": 1,
      "permission": "pack_bel"
    }
  ]
}

xNullPointer95

Posted

Hello, thanks for your purchase.

You have the same permissionId for every weapon, so if you grant permission "pack_bel" for default users, each user in group default (which are all players) will get access to the modified magazine capacity.

To be honest, i didnt try what happens when using the same permission for several weapons, you may try it with incremental numbers like "pack_bel1, pack_bel2" etc. so each is unique to use it in the meantime. I need to test it using same permission identifier for different weapons.

  • Like 1
WarisGG

Posted

7 hours ago, xNullPointer95 said:

Hola, gracias por tu compra.

Tienes el mismo permisoId para cada arma, así que si concedes permiso "pack-bel" para los usuarios predeterminados, cada usuario en grupo predeterminado (que son todos los jugadores) tendrá acceso a la capacidad de la revista modificada.

Para ser honesto, no intenté lo que sucede cuando se utiliza el mismo permiso para varias armas, puede intentarlo con números incrementales como "pack-bel1, pack-bel2", etc. por lo que cada uno es único para usarlo mientras tanto. Necesito probarlo usando el mismo identificador de permiso para diferentes armas.

I understand. The idea was to make it so users with X permissions would have those mods together. I thought differently about it, but I'll adapt it as you say.

Another thing: the weapon still has the mods even after removing the plugin and restarting the server. I had to get another new weapon to get reloading back to normal.

xNullPointer95

Posted

18 minutes ago, WarisGG said:

I understand. The idea was to make it so users with X permissions would have those mods together. I thought differently about it, but I'll adapt it as you say.

Another thing: the weapon still has the mods even after removing the plugin and restarting the server. I had to get another new weapon to get reloading back to normal.

Thanks for your feedback, will consider, that it switches to default capacity when unloading the plugin on the next update.

1.9m

Downloads

Total number of downloads.

8.6k

Customers

Total customers served.

129.3k

Files Sold

Total number of files sold.

2.7m

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.