The admin permission now also supports the placeholder <alias>.

The admin permission now also supports the placeholder <alias>.
This commit is contained in:
2023-07-16 08:19:03 +02:00
parent 0c1d32e0e8
commit a1ffd48f3e
5 changed files with 22 additions and 14 deletions

View File

@@ -78,6 +78,8 @@ Alias:
# Here you can enable or disable the admin function
Enable: false
# Here you set the permission for the admin function
# The placeholder <alias> is the alias name.
# If you have set multiple alias referrers in the list 'Alias.AliasList' you have a permission for each alias.
Permission: t2code.alias.admin
Command:
# Here you can tell the alias to execute one or more commands

View File

@@ -20,7 +20,7 @@ SubAlias:
Necessary: true
# Here you can set the permission for the alias.
# The placeholder <alias> is the alias name.
# If you have set multiple alias referrers in the list 'Alias.AliasList' you have a permission for each alias.
# If you have set multiple alias referrers in the list 'Alias.SubAliasList' you have a permission for each alias.
Permission: 't2code.alias.use.subalias.<alias>'
# Here you can set a custom No Permission message for this alias. If you want to use the default message, just leave this blank.
CustomNoPermissionMSG: ""
@@ -82,6 +82,8 @@ SubAlias:
# Here you can enable or disable the admin function
Enable: false
# Here you set the permission for the admin function
# The placeholder <alias> is the alias name.
# If you have set multiple alias referrers in the list 'Alias.SubAliasList' you have a permission for each alias.
Permission: t2code.alias.admin
Command:
# Here you can tell the alias to execute one or more commands