Class TimeCommand

java.lang.Object
ua.mcchickenstudio.opencreative.commands.CommandHandler
ua.mcchickenstudio.opencreative.commands.minecraft.TimeCommand
All Implemented Interfaces:
org.bukkit.command.CommandExecutor, org.bukkit.command.TabCompleter

public class TimeCommand extends CommandHandler

TimeCommand

This command is responsible for changing time in current world.

Using this command from console will redirect to Minecraft command.

Available: For world builders or developers.

  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onExecute(@NotNull org.bukkit.command.CommandSender sender, @NotNull org.bukkit.command.Command command, @NotNull String label, String[] args)
    Executes command for sender.
    @Nullable List<String>
    onTab(@NotNull org.bukkit.command.CommandSender sender, @NotNull org.bukkit.command.Command command, @NotNull String label, @NotNull String[] args)
    Returns list of tab completions, that can suggest arguments for command sender, or null.

    Methods inherited from class CommandHandler

    onCommand, onTabComplete
    Modifier and Type
    Method
    Description
    final boolean
    onCommand(@NotNull org.bukkit.command.CommandSender sender, @NotNull org.bukkit.command.Command command, @NotNull String label, @NotNull String[] args)
     
    final @Nullable List<String>
    onTabComplete(@NotNull org.bukkit.command.CommandSender sender, @NotNull org.bukkit.command.Command command, @NotNull String alias, @NotNull String[] args)
     

    Methods inherited from class Object

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

    • TimeCommand

      public TimeCommand()
  • Method Details

    • onExecute

      public void onExecute(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull org.bukkit.command.Command command, @NotNull @NotNull String label, String[] args)
      Description copied from class: CommandHandler
      Executes command for sender.
      Specified by:
      onExecute in class CommandHandler
      Parameters:
      sender - sender of command, can be player or console.
      command - command, that was executed.
      label - label of command (name of command after slash /).
      args - arguments of command.
    • onTab

      @Nullable public @Nullable List<String> onTab(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull org.bukkit.command.Command command, @NotNull @NotNull String label, @NotNull @NotNull String[] args)
      Description copied from class: CommandHandler
      Returns list of tab completions, that can suggest arguments for command sender, or null.
      Specified by:
      onTab in class CommandHandler
      Parameters:
      sender - sender of command.
      command - command, that was requested.
      label - label of command (name of command after slash /).
      args - arguments of command.
      Returns:
      list of suggestions for arguments, or null.