Class ADPVelocityBootstrap

  • All Implemented Interfaces:
    com.alessiodp.core.common.bootstrap.ADPBootstrap

    public abstract class ADPVelocityBootstrap
    extends Object
    implements com.alessiodp.core.common.bootstrap.ADPBootstrap
    • Field Detail

      • plugin

        @NotNull
        protected final @NotNull com.alessiodp.core.common.ADPPlugin plugin
    • Constructor Detail

      • ADPVelocityBootstrap

        public ADPVelocityBootstrap​(com.velocitypowered.api.proxy.ProxyServer server,
                                    org.slf4j.Logger logger,
                                    Path dataDirectory,
                                    org.bstats.velocity.Metrics.Factory metricsFactory)
    • Method Detail

      • initializePlugin

        protected abstract com.alessiodp.core.common.ADPPlugin initializePlugin()
      • onProxyInitialization

        public void onProxyInitialization​(com.velocitypowered.api.event.proxy.ProxyInitializeEvent ignored)
      • onProxyShutdown

        public void onProxyShutdown​(com.velocitypowered.api.event.proxy.ProxyShutdownEvent ignored)
      • getResource

        @Nullable
        public @Nullable InputStream getResource​(@NotNull
                                                 @NotNull String resource)
        Specified by:
        getResource in interface com.alessiodp.core.common.bootstrap.ADPBootstrap
      • getBootstrap

        @NotNull
        public @NotNull com.alessiodp.core.common.bootstrap.ADPBootstrap getBootstrap()
        Specified by:
        getBootstrap in interface com.alessiodp.core.common.bootstrap.ADPBootstrap
      • initializeLogger

        @NotNull
        public @NotNull com.alessiodp.core.common.logging.logger.ADPLogger initializeLogger()
        Specified by:
        initializeLogger in interface com.alessiodp.core.common.bootstrap.ADPBootstrap
      • getFolder

        @NotNull
        public @NotNull Path getFolder()
        Specified by:
        getFolder in interface com.alessiodp.core.common.bootstrap.ADPBootstrap
      • getPlatform

        @NotNull
        public @NotNull com.alessiodp.core.common.bootstrap.PluginPlatform getPlatform()
        Specified by:
        getPlatform in interface com.alessiodp.core.common.bootstrap.ADPBootstrap
      • stopPlugin

        public void stopPlugin()
        Specified by:
        stopPlugin in interface com.alessiodp.core.common.bootstrap.ADPBootstrap
      • isPluginEnabled

        public boolean isPluginEnabled​(@NotNull
                                       @NotNull String pluginName)
        Specified by:
        isPluginEnabled in interface com.alessiodp.core.common.bootstrap.ADPBootstrap
      • getPlayer

        @Nullable
        public @Nullable com.alessiodp.core.common.user.User getPlayer​(@NotNull
                                                                       @NotNull UUID uuid)
        Specified by:
        getPlayer in interface com.alessiodp.core.common.bootstrap.ADPBootstrap
      • getPlayerByName

        @Nullable
        public @Nullable com.alessiodp.core.common.user.User getPlayerByName​(@NotNull
                                                                             @NotNull String name)
        Specified by:
        getPlayerByName in interface com.alessiodp.core.common.bootstrap.ADPBootstrap
      • getOfflinePlayer

        @Nullable
        public @Nullable com.alessiodp.core.common.user.OfflineUser getOfflinePlayer​(@NotNull
                                                                                     @NotNull UUID uuid)
        Specified by:
        getOfflinePlayer in interface com.alessiodp.core.common.bootstrap.ADPBootstrap
      • getOnlinePlayers

        @NotNull
        public @NotNull List<com.alessiodp.core.common.user.User> getOnlinePlayers()
        Specified by:
        getOnlinePlayers in interface com.alessiodp.core.common.bootstrap.ADPBootstrap
      • executeCommand

        public void executeCommand​(@NotNull
                                   @NotNull String command)
        Specified by:
        executeCommand in interface com.alessiodp.core.common.bootstrap.ADPBootstrap
      • executeCommandByUser

        public void executeCommandByUser​(@NotNull
                                         @NotNull String command,
                                         @NotNull
                                         @NotNull com.alessiodp.core.common.user.User user)
        Specified by:
        executeCommandByUser in interface com.alessiodp.core.common.bootstrap.ADPBootstrap
      • registerListener

        public void registerListener​(@NotNull
                                     @NotNull Object object)
        Specified by:
        registerListener in interface com.alessiodp.core.common.bootstrap.ADPBootstrap
      • unregisterListener

        public void unregisterListener​(@NotNull
                                       @NotNull Object object)
        Specified by:
        unregisterListener in interface com.alessiodp.core.common.bootstrap.ADPBootstrap