Class BungeeCommandFactory

    • Method Detail

      • register

        public static void register​(@NotNull
                                    @NotNull Plugin plugin,
                                    @NotNull
                                    @NotNull Command command)
        Registers the command.
        Parameters:
        plugin - the BungeeCord plugin
        command - the command to register
      • registerAsync

        public static void registerAsync​(@NotNull
                                         @NotNull Plugin plugin,
                                         @NotNull
                                         @NotNull Command command)
        Registers the command.

        If you register a command with this method, it will be executed asynchronously.

        Note:

        The tab completion will execute on main thread.

        Parameters:
        plugin - the BungeeCord plugin
        command - the command to register
      • registerAsync

        public static void registerAsync​(@NotNull
                                         @NotNull Plugin plugin,
                                         @NotNull
                                         @NotNull Command command,
                                         @NotNull
                                         @NotNull Executor executor)
        Registers the command.

        If you register a command with this method, it will be executed asynchronously.

        Note:

        The tab completion will execute on main thread.

        Parameters:
        plugin - the BungeeCord plugin
        command - the command to register
        executor - the executor to run command