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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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
Sends help messages to aCommandSender
concerning video commands.
-
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 interfaceorg.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 interfaceorg.bukkit.command.TabCompleter
-
sendHelp
Sends help messages to aCommandSender
concerning video commands.- Parameters:
sender
- The command sender that has sent the command, can beBukkit.getConsoleSender()
.cmd
- The command name that is sent by the command sender.
-