initial
This commit is contained in:
10
LightPerms.TorchCommands/Extensions.cs
Normal file
10
LightPerms.TorchCommands/Extensions.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using Torch.Commands;
|
||||
namespace LightPerms.TorchCommands;
|
||||
|
||||
public static class Extensions
|
||||
{
|
||||
public static string GetPermissionString(this Command command)
|
||||
{
|
||||
return $"command.{string.Join(".", command.Path.Select(b => b.ToLowerInvariant()))}";
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user