Skip to content

Commit ab5b5ce

Browse files
kits.admin permission now also grants access to all kits
1 parent 2432684 commit ab5b5ce

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Kits/Commands/KitCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public void Execute(IRocketPlayer caller, string[] command)
3737
return;
3838
}
3939

40-
if (!caller.HasPermission($"kit.{kit.Name.ToLower()}"))
40+
if (!caller.HasPermission($"kit.{kit.Name.ToLower()}") && !caller.HasPermission("kits.admin"))
4141
{
4242
pluginInstance.SendMessageToPlayer(caller, "KitNoPermission", kit.Name);
4343
return;

Kits/Kits.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<TargetFramework>net48</TargetFramework>
55
<LangVersion>latest</LangVersion>
66
<RootNamespace>RestoreMonarchy.Kits</RootNamespace>
7-
<Version>1.0.5</Version>
7+
<Version>1.0.6</Version>
88
</PropertyGroup>
99

1010
<ItemGroup>

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ To grant access to the kit, add the permission `kit.<name>` to the player. For e
3333
<!-- Optional givekit permission. I don't recommend giving it to players -->
3434
<Permission Cooldown="0">givekit</Permission>
3535

36-
<!-- Admin permission that grants access to all commands and bypasses cooldowns. DO NOT GIVE IT TO NORMAL PLAYERS! -->
36+
<!-- Admin permission that grants access to all commands, kits and bypasses cooldowns. DO NOT GIVE IT TO NORMAL PLAYERS! -->
3737
<Permission Cooldown="0">kits.admin</Permission>
3838
```
3939

0 commit comments

Comments
 (0)