correct command permission check

This commit is contained in:
zznty
2023-11-10 17:34:03 +07:00
parent 78164fd6be
commit bb5750f754
3 changed files with 3 additions and 3 deletions

View File

@@ -2,5 +2,5 @@
<PluginManifest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <PluginManifest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Name>LuckPerms.Loader</Name> <Name>LuckPerms.Loader</Name>
<Guid>7E4B3CC8-64FA-416E-8910-AACDF2DA5E2C</Guid> <Guid>7E4B3CC8-64FA-416E-8910-AACDF2DA5E2C</Guid>
<Version>v5.4.106.1</Version> <Version>v5.4.106.2</Version>
</PluginManifest> </PluginManifest>

View File

@@ -7,6 +7,6 @@ public static class CommandExtensions
{ {
public static string GetPermissionString(this Command command) public static string GetPermissionString(this Command command)
{ {
return $"minecraft.command.{string.Join(".", command.Path.Select(b => b.ToLowerInvariant()))}"; return $"command.{string.Join(".", command.Path.Select(b => b.ToLowerInvariant()))}";
} }
} }

View File

@@ -2,5 +2,5 @@
<PluginManifest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <PluginManifest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Name>LuckPerms.Torch</Name> <Name>LuckPerms.Torch</Name>
<Guid>7E4B3CC8-64FA-416E-8910-AACDF2DA5E2C</Guid> <Guid>7E4B3CC8-64FA-416E-8910-AACDF2DA5E2C</Guid>
<Version>v5.4.106.1</Version> <Version>v5.4.106.2</Version>
</PluginManifest> </PluginManifest>