Class Token
java.lang.Object
com.github.mafelp.minecraft.commands.Token
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor
"/token" command - use: set the discord api token with a command,
instead of using the configuration file
-
Field Summary
Modifier and TypeFieldDescriptionprivate static String
The help message used, when the command had invalid parameters -
Constructor Summary
-
Method Summary
-
Field Details
-
helpMessage
The help message used, when the command had invalid parameters
-
-
Constructor Details
-
Token
public Token()
-
-
Method Details
-
onCommand
public boolean onCommand(@NotNull @NotNull org.bukkit.command.CommandSender commandSender, @NotNull @NotNull org.bukkit.command.Command command, @NotNull @NotNull String label, String[] args)Command handler for command "/token"- Specified by:
onCommand
in interfaceorg.bukkit.command.CommandExecutor
- Parameters:
commandSender
- the sender of the commandcommand
- the command executed by the senderlabel
- the label of the commandargs
- arguments parsed by the sender after the command- Returns:
- success state
-