Annotation Type CommandType


  • @Target(TYPE)
    @Retention(RUNTIME)
    public @interface CommandType
    Represent this class is a Command. It means that this class must extend Command class.
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      Class<? extends Plugin> plugin
      Set the plugin the command belongs to
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      String[] aliases
      Set the aliases of the command
      String name
      Set the name of the command
    • Element Detail

      • plugin

        Class<? extends Plugin> plugin
        Set the plugin the command belongs to
        Returns:
        the plugin the command belongs to
      • name

        String name
        Set the name of the command
        Returns:
        the name of the command
        Default:
        ""
      • aliases

        String[] aliases
        Set the aliases of the command
        Returns:
        the aliases of the command
        Default:
        {}