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

public class Token
extends java.lang.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 java.lang.String helpMessage
    The help message used, when the command had invalid parameters
  • Constructor Summary

    Constructors
    Constructor Description
    Token()  
  • Method Summary

    Modifier and Type Method Description
    boolean onCommand​(@NotNull org.bukkit.command.CommandSender commandSender, @NotNull org.bukkit.command.Command command, @NotNull java.lang.String label, java.lang.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 java.lang.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 java.lang.String label, java.lang.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