Permalink
Browse files

Fixed #109

New permission node: `vMenu.WeaponOptions.SpawnByName`
(WPSpawnByName)
  • Loading branch information...
TomGrobbe committed Jul 26, 2018
1 parent cec725b commit 829ba7fcdcd60ccf0a9542b972e244a4ad5ae86b
Showing with 4 additions and 1 deletion.
  1. +1 −0 vMenu/Permission.cs
  2. +1 −1 vMenu/menus/WeaponOptions.cs
  3. +1 −0 vMenuServer/MainServer.cs
  4. +1 −0 vMenuServer/config/permissions.cfg
@@ -130,6 +130,7 @@ public enum Permission
WPUnlimitedAmmo,
WPNoReload,
WPSpawn,
WPSpawnByName,
WPSetAllAmmo,
//Weapons Permissions
@@ -71,7 +71,7 @@ private void CreateMenu()
menu.AddItem(setAmmo);
menu.AddItem(refillMaxAmmo);
}
if (cf.IsAllowed(Permission.WPSpawn))
if (cf.IsAllowed(Permission.WPSpawnByName))
{
menu.AddItem(spawnByName);
}
@@ -197,6 +197,7 @@ public class MainServer : BaseScript
"WPUnlimitedAmmo",
"WPNoReload",
"WPSpawn",
"WPSpawnByName",
"WPSetAllAmmo",
// Weapons Permissions
@@ -229,6 +229,7 @@ add_ace builtin.everyone "vMenu.WeaponOptions.All" allow
#add_ace builtin.everyone "vMenu.WeaponOptions.UnlimitedAmmo" allow
#add_ace builtin.everyone "vMenu.WeaponOptions.NoReload" allow
#add_ace builtin.everyone "vMenu.WeaponOptions.Spawn" allow
#add_ace builtin.everyone "vMenu.WeaponOptions.SpawnByName" allow
#add_ace builtin.everyone "vMenu.WeaponOptions.SetAllAmmo" allow

0 comments on commit 829ba7f

Please sign in to comment.