Class ADPVelocityBootstrap
- java.lang.Object
-
- com.alessiodp.core.velocity.bootstrap.ADPVelocityBootstrap
-
- All Implemented Interfaces:
com.alessiodp.core.common.bootstrap.ADPBootstrap
public abstract class ADPVelocityBootstrap extends Object implements com.alessiodp.core.common.bootstrap.ADPBootstrap
-
-
Field Summary
Fields Modifier and Type Field Description protected @NotNull com.alessiodp.core.common.ADPPluginplugin
-
Constructor Summary
Constructors Constructor Description ADPVelocityBootstrap(com.velocitypowered.api.proxy.ProxyServer server, org.slf4j.Logger logger, Path dataDirectory, org.bstats.velocity.Metrics.Factory metricsFactory)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidexecuteCommand(@NotNull String command)voidexecuteCommandByUser(@NotNull String command, @NotNull com.alessiodp.core.common.user.User user)@NotNull com.alessiodp.core.common.bootstrap.ADPBootstrapgetBootstrap()@NotNull PathgetFolder()@Nullable com.alessiodp.core.common.user.OfflineUsergetOfflinePlayer(@NotNull UUID uuid)@NotNull List<com.alessiodp.core.common.user.User>getOnlinePlayers()@NotNull com.alessiodp.core.common.bootstrap.PluginPlatformgetPlatform()@Nullable com.alessiodp.core.common.user.UsergetPlayer(@NotNull UUID uuid)@Nullable com.alessiodp.core.common.user.UsergetPlayerByName(@NotNull String name)@Nullable InputStreamgetResource(@NotNull String resource)@NotNull com.alessiodp.core.common.logging.logger.ADPLoggerinitializeLogger()protected abstract com.alessiodp.core.common.ADPPlugininitializePlugin()booleanisPluginEnabled(@NotNull String pluginName)voidonProxyInitialization(com.velocitypowered.api.event.proxy.ProxyInitializeEvent ignored)voidonProxyShutdown(com.velocitypowered.api.event.proxy.ProxyShutdownEvent ignored)voidregisterListener(@NotNull Object object)voidstopPlugin()voidunregisterListener(@NotNull Object object)
-
-
-
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:
getResourcein interfacecom.alessiodp.core.common.bootstrap.ADPBootstrap
-
getBootstrap
@NotNull public @NotNull com.alessiodp.core.common.bootstrap.ADPBootstrap getBootstrap()
- Specified by:
getBootstrapin interfacecom.alessiodp.core.common.bootstrap.ADPBootstrap
-
initializeLogger
@NotNull public @NotNull com.alessiodp.core.common.logging.logger.ADPLogger initializeLogger()
- Specified by:
initializeLoggerin interfacecom.alessiodp.core.common.bootstrap.ADPBootstrap
-
getFolder
@NotNull public @NotNull Path getFolder()
- Specified by:
getFolderin interfacecom.alessiodp.core.common.bootstrap.ADPBootstrap
-
getPlatform
@NotNull public @NotNull com.alessiodp.core.common.bootstrap.PluginPlatform getPlatform()
- Specified by:
getPlatformin interfacecom.alessiodp.core.common.bootstrap.ADPBootstrap
-
stopPlugin
public void stopPlugin()
- Specified by:
stopPluginin interfacecom.alessiodp.core.common.bootstrap.ADPBootstrap
-
isPluginEnabled
public boolean isPluginEnabled(@NotNull @NotNull String pluginName)- Specified by:
isPluginEnabledin interfacecom.alessiodp.core.common.bootstrap.ADPBootstrap
-
getPlayer
@Nullable public @Nullable com.alessiodp.core.common.user.User getPlayer(@NotNull @NotNull UUID uuid)- Specified by:
getPlayerin interfacecom.alessiodp.core.common.bootstrap.ADPBootstrap
-
getPlayerByName
@Nullable public @Nullable com.alessiodp.core.common.user.User getPlayerByName(@NotNull @NotNull String name)- Specified by:
getPlayerByNamein interfacecom.alessiodp.core.common.bootstrap.ADPBootstrap
-
getOfflinePlayer
@Nullable public @Nullable com.alessiodp.core.common.user.OfflineUser getOfflinePlayer(@NotNull @NotNull UUID uuid)- Specified by:
getOfflinePlayerin interfacecom.alessiodp.core.common.bootstrap.ADPBootstrap
-
getOnlinePlayers
@NotNull public @NotNull List<com.alessiodp.core.common.user.User> getOnlinePlayers()
- Specified by:
getOnlinePlayersin interfacecom.alessiodp.core.common.bootstrap.ADPBootstrap
-
executeCommand
public void executeCommand(@NotNull @NotNull String command)- Specified by:
executeCommandin interfacecom.alessiodp.core.common.bootstrap.ADPBootstrap
-
executeCommandByUser
public void executeCommandByUser(@NotNull @NotNull String command, @NotNull @NotNull com.alessiodp.core.common.user.User user)- Specified by:
executeCommandByUserin interfacecom.alessiodp.core.common.bootstrap.ADPBootstrap
-
registerListener
public void registerListener(@NotNull @NotNull Object object)- Specified by:
registerListenerin interfacecom.alessiodp.core.common.bootstrap.ADPBootstrap
-
unregisterListener
public void unregisterListener(@NotNull @NotNull Object object)- Specified by:
unregisterListenerin interfacecom.alessiodp.core.common.bootstrap.ADPBootstrap
-
-