Class Whisper

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

public class Whisper extends Object implements org.bukkit.command.CommandExecutor
The class that handles execution of the command /whisper
  • 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, @NotNull String[] args)
    The Method called when command /token is executed.

    Methods inherited from class java.lang.Object

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

    • Whisper

      public Whisper()
  • Method Details

    • onCommand

      public boolean onCommand(@NotNull @NotNull org.bukkit.command.CommandSender commandSender, @NotNull @NotNull org.bukkit.command.Command command, @NotNull @NotNull String label, @NotNull @NotNull String[] args)
      The Method called when command /token is executed.
      Specified by:
      onCommand in interface org.bukkit.command.CommandExecutor
      Parameters:
      commandSender - The sender of the command
      command - the command he/she used
      label - the label of the command
      args - additional arguments passed: Discord ID and unique identifier.
      Returns:
      command success