Class VideoCommands

java.lang.Object
fr.xxathyx.mediaplayer.video.commands.VideoCommands
All Implemented Interfaces:
org.bukkit.command.CommandExecutor, org.bukkit.command.TabCompleter

public class VideoCommands extends Object implements org.bukkit.command.CommandExecutor, org.bukkit.command.TabCompleter
The VideoCommands class implements CommandExecutor, it grants an easy in game access to the plugin features concerning videos.
Since:
2021-08-23
Version:
1.0.0
Author:
Xxathyx
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    onCommand(org.bukkit.command.CommandSender sender, org.bukkit.command.Command cmd, String name, String[] arg3)
    See Bukkit documentation : CommandExecutor.onCommand(CommandSender, Command, String, String[])
    onTabComplete(org.bukkit.command.CommandSender sender, org.bukkit.command.Command command, String alias, String[] args)
    See Bukkit documentation : TabCompleter
    void
    sendHelp(org.bukkit.command.CommandSender sender, String cmd)
    Sends help messages to a CommandSender concerning video commands.

    Methods inherited from class java.lang.Object

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

    • VideoCommands

      public VideoCommands()
  • Method Details

    • onCommand

      public boolean onCommand(org.bukkit.command.CommandSender sender, org.bukkit.command.Command cmd, String name, String[] arg3)
      See Bukkit documentation : CommandExecutor.onCommand(CommandSender, Command, String, String[])

      Called every time the video commands are sent.

      Specified by:
      onCommand in interface org.bukkit.command.CommandExecutor
    • onTabComplete

      public List<String> onTabComplete(org.bukkit.command.CommandSender sender, org.bukkit.command.Command command, String alias, String[] args)
      See Bukkit documentation : TabCompleter

      Called every time a player is try to auto-complete command.

      Specified by:
      onTabComplete in interface org.bukkit.command.TabCompleter
    • sendHelp

      public void sendHelp(org.bukkit.command.CommandSender sender, String cmd)
      Sends help messages to a CommandSender concerning video commands.
      Parameters:
      sender - The command sender that has sent the command, can be Bukkit.getConsoleSender().
      cmd - The command name that is sent by the command sender.