Package me.efekos.simpler.commands
Annotation Interface Command
Used to give information about a command class. A
BaseCommand
,CoreCommand
and SubCommand
requires Command
annotation to be used.-
Required Element Summary
Modifier and TypeRequired ElementDescriptionDescription of this command.Name of this command. -
Optional Element Summary
Modifier and TypeOptional ElementDescriptionPermission required from player to use this command.boolean
Is this command player only?
If true, the console can't use this command.
-
Element Details
-
name
String nameName of this command.- Returns:
- Name of this command.
-
description
String descriptionDescription of this command.- Returns:
- Description of this command.
-
permission
String permissionPermission required from player to use this command. If not specified, every player can use this command without any permission.- Returns:
- Permission of this command.
- Default:
- ""
-
playerOnly
boolean playerOnlyIs this command player only?
If true, the console can't use this command. If false, console can use this command too.- Returns:
- Is this command player only?
- Default:
- false
-