Description
The permission simpleautorestart.use exists in the command definition, but it does not seem to work correctly in practice.
On some servers the permission works as expected, while on others it does not. This inconsistency may be related to the fact that the permission node is not explicitly declared in the permissions section of plugin.yml.
Even though the command specifies:
permission: simpleautorestart.use
This could be fixed, for example, by explicitly declaring the permission in plugin.yml like this:
commands:
simpleautorestart:
description: Main SimpleAutoRestart command
aliases: [sar, autorestart]
usage: "Usage: /<command> set <hour> <minute> [day]"
permission: simpleautorestart.use
permissions:
simpleautorestart.use:
description: Permission to use command simpleautorestart
default: op
Description
The permission
simpleautorestart.useexists in the command definition, but it does not seem to work correctly in practice.On some servers the permission works as expected, while on others it does not. This inconsistency may be related to the fact that the permission node is not explicitly declared in the
permissionssection ofplugin.yml.Even though the command specifies:
This could be fixed, for example, by explicitly declaring the permission in
plugin.ymllike this: