
Custom Magazine Capacity

xMagazineCapacity
- Set a custom magazine capacity for any weapon.
- Define a default capacity
- Define a permission or not for any custom magazine capacity
Default Config
{
"Weapons": [
{
"weaponName": "rifle.ak",
"capacity": 45,
"defaultCapacity": 30,
"permission": ""
},
{
"weaponName": "rocket.launcher",
"capacity": 3,
"defaultCapacity": 1,
"permission": "xmagazinecapacity.rocketlauncher3"
},
{
"weaponName": "rocket.launcher",
"capacity": 6,
"defaultCapacity": 1,
"permission": "xmagazinecapacity.rocketlauncher6"
}
],
"RevokePermissionsOnUnload": false,
"RestoreRevokedPermissionsOnLoad": true
}
ℹ️ Keep "permission" empty to override magazine capacity for all players. When config is changed, reload the plugin.
➡️ Add as much weapons as you want.
➡️ Multiple permissions for same weapon
If you have identical weapon names with different permissions, the capacity will be taken from the one with the highest capacity.
Example: 3 times "rocket.launcher" with different permissions: xmagazinecapacity.rl3, xmagazinecapacity.rl6, xmagazinecapacity.rl9 - If a player has all 3 permissions, the capacity will be 9, since its the one with most capacity.
➡️ RevokePermissionsOnUnload/RestoreRevokedPermissionsOnLoad
"RevokePermissionsOnUnload": When the plugin unloads, it takes back any weapon permissions it granted while plugin was running.
"RestoreRevokedPermissionsOnLoad": If you turned the "RevokePermissionsOnUnload" on, this restore option puts revoked permissions back on the same players the next time the plugin loads. (It only affects xmagazinecapacity configured permissions)
xMagazineCapacity.json
| 1 | { |
| 2 | "Weapons": [ |
| 3 | { |
| 4 | "weaponName": "rifle.ak", |
| 5 | "capacity": 45, |
| 6 | "defaultCapacity": 30, |
| 7 | "permission": "" |
| 8 | }, |
| 9 | { |
| 10 | "weaponName": "rocket.launcher", |
| 11 | "capacity": 3, |
| 12 | "defaultCapacity": 1, |
| 13 | "permission": "xmagazinecapacity.rocketlauncher3" |
| 14 | }, |
| 15 | { |
| 16 | "weaponName": "rocket.launcher", |
| 17 | "capacity": 6, |
| 18 | "defaultCapacity": 1, |
| 19 | "permission": "xmagazinecapacity.rocketlauncher6" |
| 20 | } |
| 21 | ], |
| 22 | "RevokePermissionsOnUnload": false, |
| 23 | "RestoreRevokedPermissionsOnLoad": true, |
| 24 | "AllowExtendedMagazineBonus": false |
| 25 | } |


Trusted hosting partner. Affordable game servers with solid support and panels.
Visit site ↗