Skip to content

simpleautorestart.use permission doesn't work correctly #44

@MusiJVR

Description

@MusiJVR

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions