java.lang.Object
org.reprogle.honeypot.common.commands.subcommands.HoneypotCreate
All Implemented Interfaces:
HoneypotSubCommand

public class HoneypotCreate extends Object implements HoneypotSubCommand
  • Constructor Details

    • HoneypotCreate

      public HoneypotCreate()
  • Method Details

    • getName

      public String getName()
      Description copied from interface: HoneypotSubCommand
      Gets the name of the command
      Specified by:
      getName in interface HoneypotSubCommand
      Returns:
      The String name
    • perform

      public void perform(org.bukkit.entity.Player p, String[] args)
      Description copied from interface: HoneypotSubCommand
      Performs the command
      Specified by:
      perform in interface HoneypotSubCommand
      Parameters:
      p - The Player running the command
      args - Any arguments to pass
    • getSubcommands

      public List<String> getSubcommands(org.bukkit.entity.Player p, String[] args)
      Description copied from interface: HoneypotSubCommand
      Gets all subcommands of the main command if any (Such as with the create or remove command)
      Specified by:
      getSubcommands in interface HoneypotSubCommand
      Parameters:
      p - The Player running the command
      args - Any arguments to pass
      Returns:
      A list of all subcommands as strings
    • getRequiredPermissions

      public List<HoneypotPermission> getRequiredPermissions()
      Description copied from interface: HoneypotSubCommand
      Gets the required permissions to run the command. May be multiple
      Specified by:
      getRequiredPermissions in interface HoneypotSubCommand
      Returns:
      A list of all subcommands as strings