Skip to content

Commit 1f7dfc4

Browse files
authored
Merge pull request #10 from criskkky/dev
Edited "Reguire" to "Require" in 4 files.
2 parents 2050c77 + 0a7c39b commit 1f7dfc4

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

CustomCommands/Commands.example.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@
3939
"say hello"
4040
],
4141
"Permission": {
42-
"ReguiresAllPermissions": false,
42+
"RequiresAllPermissions": false,
4343
"PermissionList": [
4444
"@css/cvar",
4545
"@custom/permission",
4646
"#css/simple-admin"
4747
]
4848
}
4949
}
50-
]
50+
]

CustomCommands/Model/CommandsConfig.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class Commands
1313
}
1414
public class Permission
1515
{
16-
public bool ReguiresAllPermissions { get; set; } = false;
16+
public bool RequiresAllPermissions { get; set; } = false;
1717
public List<string> PermissionList { get; set; } = new();
1818
}
1919
public class CenterElement

CustomCommands/Services/PermissionsManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public PermissionsManager(IPluginGlobals PluginGlobals)
1616

1717
public bool RequiresPermissions(CCSPlayerController player, Permission permissions)
1818
{
19-
if (!permissions.ReguiresAllPermissions)
19+
if (!permissions.RequiresAllPermissions)
2020
{
2121
foreach (var permission in permissions.PermissionList)
2222
{

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ For more examples look here: [Examples](https://github.com/HerrMagiic/CSS-Create
5050
"say hello"
5151
],
5252
"Permission": {
53-
"ReguiresAllPermissions": false,
53+
"RequiresAllPermissions": false,
5454
"PermissionList": [
5555
"@css/cvar",
5656
"@custom/permission",
@@ -104,7 +104,7 @@ An array of server commands to be executed when the command is triggered. Useful
104104

105105
Defines if the command requires specific permissions to execute:
106106

107-
- **ReguiresAllPermissions**
107+
- **RequiresAllPermissions**
108108
- Set to true = The player needs all permissions in PermissionsList
109109
- Set to false = The player only needs one of the permissions in PermissionsList
110110
- **PermissionList**: A list of permission flags or groups required to execute the command. [More Explenation](https://docs.cssharp.dev/docs/admin-framework/defining-admins.html)

0 commit comments

Comments
 (0)