java.lang.Object
ua.mcchickenstudio.opencreative.commands.CommandHandler
ua.mcchickenstudio.opencreative.commands.world.reputation.DislikeCommand
All Implemented Interfaces:
org.bukkit.command.CommandExecutor, org.bukkit.command.TabCompleter

public class DislikeCommand extends CommandHandler

DislikeCommand

This command allows players to rate current world as bad one and decrease world's reputation.

Available: For all world players.

  • Constructor Details

    • DislikeCommand

      public DislikeCommand()
  • 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 alias, @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.
      alias - label of command (name of command after slash /).
      args - arguments of command.
      Returns:
      list of suggestions for arguments, or null.