This commit is contained in:
zznty
2022-05-24 15:49:43 +07:00
commit c20e468b99
32 changed files with 1654 additions and 0 deletions

View 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()))}";
}
}