Files
TorchPlugins/LuckPerms.Torch/Extensions/CommandExtensions.cs
2023-11-09 19:47:20 +07:00

13 lines
309 B
C#

using System.Linq;
using Torch.Commands;
namespace LuckPerms.Torch.Extensions;
public static class CommandExtensions
{
public static string GetPermissionString(this Command command)
{
return $"minecraft.command.{string.Join(".", command.Path.Select(b => b.ToLowerInvariant()))}";
}
}