public class VelocityBootstrap
extends java.lang.Object
implements dev.id2r.api.common.plugin.bootstrap.ID2RPluginBootstrap
| Constructor and Description |
|---|
VelocityBootstrap(org.slf4j.Logger logger,
VelocityPlugin plugin) |
| Modifier and Type | Method and Description |
|---|---|
java.nio.file.Path |
getDataDirectory() |
com.velocitypowered.api.proxy.ProxyServer |
getLoader() |
dev.id2r.api.common.plugin.logging.PluginLogger |
getLogger() |
java.util.Collection<java.util.UUID> |
getOnlinePlayers() |
dev.id2r.api.common.platform.Platform.Type |
getPlatformType() |
java.util.Optional<?> |
getPlayer(java.util.UUID uuid) |
int |
getPlayerCount() |
java.util.Collection<java.lang.String> |
getPlayerList() |
java.time.Instant |
getStartupTime() |
dev.id2r.api.common.plugin.task.TaskFactory |
getTaskFactory() |
java.lang.String |
getVersion() |
boolean |
isPlayerOnline(java.util.UUID uniqueId) |
void |
onDisable(com.velocitypowered.api.event.proxy.ProxyShutdownEvent e) |
void |
onEnable(com.velocitypowered.api.event.proxy.ProxyInitializeEvent e) |
@Inject
public VelocityBootstrap(org.slf4j.Logger logger,
VelocityPlugin plugin)
public void onEnable(com.velocitypowered.api.event.proxy.ProxyInitializeEvent e)
public void onDisable(com.velocitypowered.api.event.proxy.ProxyShutdownEvent e)
public com.velocitypowered.api.proxy.ProxyServer getLoader()
public dev.id2r.api.common.plugin.logging.PluginLogger getLogger()
getLogger in interface dev.id2r.api.common.plugin.bootstrap.ID2RPluginBootstrappublic dev.id2r.api.common.plugin.task.TaskFactory getTaskFactory()
getTaskFactory in interface dev.id2r.api.common.plugin.bootstrap.ID2RPluginBootstrappublic java.lang.String getVersion()
getVersion in interface dev.id2r.api.common.plugin.bootstrap.ID2RPluginBootstrappublic java.time.Instant getStartupTime()
getStartupTime in interface dev.id2r.api.common.plugin.bootstrap.ID2RPluginBootstrappublic dev.id2r.api.common.platform.Platform.Type getPlatformType()
getPlatformType in interface dev.id2r.api.common.plugin.bootstrap.ID2RPluginBootstrappublic java.nio.file.Path getDataDirectory()
getDataDirectory in interface dev.id2r.api.common.plugin.bootstrap.ID2RPluginBootstrappublic int getPlayerCount()
getPlayerCount in interface dev.id2r.api.common.plugin.bootstrap.ID2RPluginBootstrappublic java.util.Collection<java.lang.String> getPlayerList()
getPlayerList in interface dev.id2r.api.common.plugin.bootstrap.ID2RPluginBootstrappublic java.util.Collection<java.util.UUID> getOnlinePlayers()
getOnlinePlayers in interface dev.id2r.api.common.plugin.bootstrap.ID2RPluginBootstrappublic boolean isPlayerOnline(java.util.UUID uniqueId)
isPlayerOnline in interface dev.id2r.api.common.plugin.bootstrap.ID2RPluginBootstrappublic java.util.Optional<?> getPlayer(java.util.UUID uuid)
getPlayer in interface dev.id2r.api.common.plugin.bootstrap.ID2RPluginBootstrap