add luckperms plugin
This commit is contained in:
12
LuckPerms.Torch/Extensions/CommandExtensions.cs
Normal file
12
LuckPerms.Torch/Extensions/CommandExtensions.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
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()))}";
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user