Interface ADPBootstrap

    • Method Detail

      • getBootstrap

        @NotNull
        @NotNull ADPBootstrap getBootstrap()
        Get bootstrap
        Returns:
        the bootstrap
      • initializeLogger

        @NotNull
        @NotNull ADPLogger initializeLogger()
        Initialize plugin logger
        Returns:
        the logger
      • getFolder

        @NotNull
        @NotNull Path getFolder()
        Get plugin folder
        Returns:
        the plugin folder path
      • getAuthor

        @NotNull
        @NotNull String getAuthor()
        Get plugin author
        Returns:
        the author of the plugin
      • getVersion

        @NotNull
        @NotNull String getVersion()
        Get plugin version
        Returns:
        the version of the plugin
      • stopPlugin

        void stopPlugin()
        Stop the plugin
      • getResource

        @Nullable
        @Nullable InputStream getResource​(@NotNull
                                          @NotNull String resource)
        Get resource from plugin resources
        Parameters:
        resource - the resource name
        Returns:
        the resource found
      • isPluginEnabled

        boolean isPluginEnabled​(@NotNull
                                @NotNull String pluginName)
        Is the plugin enabled?
        Parameters:
        pluginName - the name of the plugin
        Returns:
        true if the given plugin is enabled
      • getPlayer

        @Nullable
        @Nullable User getPlayer​(@NotNull
                                 @NotNull UUID uuid)
        Get player with given uuid
        Parameters:
        uuid - uuid of the player
        Returns:
        the player found
      • getPlayerByName

        @Nullable
        @Nullable User getPlayerByName​(@NotNull
                                       @NotNull String name)
        Get player with given name
        Parameters:
        name - name of the player
        Returns:
        the player found
      • getOfflinePlayer

        @Nullable
        @Nullable OfflineUser getOfflinePlayer​(@NotNull
                                               @NotNull UUID uuid)
        Get offline player with given uuid
        Parameters:
        uuid - uuid of the player
        Returns:
        the offline player found
      • getOnlinePlayers

        @NotNull
        @NotNull List<User> getOnlinePlayers()
        Get online players list
        Returns:
        a list of online players
      • executeCommand

        void executeCommand​(@NotNull
                            @NotNull String command)
        Execute the command via console
        Parameters:
        command - the command to execute
      • executeCommandByUser

        void executeCommandByUser​(@NotNull
                                  @NotNull String command,
                                  @NotNull
                                  @NotNull User user)
        Execute the command via console
        Parameters:
        command - the command to execute
        user - the user executor
      • registerListener

        void registerListener​(@NotNull
                              @NotNull Object object)
        Register a listener
        Parameters:
        object - the listener to register
      • unregisterListener

        void unregisterListener​(@NotNull
                                @NotNull Object object)
        Unregister a listener
        Parameters:
        object - the listener to unregister