java.lang.Object
com.github.mafelp.minecraft.commands.Token
All Implemented Interfaces:
org.bukkit.command.CommandExecutor

public class Token extends Object implements org.bukkit.command.CommandExecutor
"/token" command - use: set the discord api token with a command, instead of using the configuration file
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static String
    The help message used, when the command had invalid parameters
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    onCommand​(@NotNull org.bukkit.command.CommandSender commandSender, @NotNull org.bukkit.command.Command command, @NotNull String label, String[] args)
    Command handler for command "/token"

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • helpMessage

      private static final String 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 interface org.bukkit.command.CommandExecutor
      Parameters:
      commandSender - the sender of the command
      command - the command executed by the sender
      label - the label of the command
      args - arguments parsed by the sender after the command
      Returns:
      success state