public abstract class CommonPlayerLink extends Object implements org.geysermc.floodgate.api.link.PlayerLink
| Constructor and Description |
|---|
CommonPlayerLink() |
| Modifier and Type | Method and Description |
|---|---|
String |
createCode() |
protected org.geysermc.floodgate.api.FloodgateApi |
getApi() |
<T extends DatabaseConfig> |
getConfig(Class<T> configClass)
Get the config present in init.json and turn it into the given config class.
|
protected ExecutorService |
getExecutorService() |
protected org.geysermc.floodgate.api.logger.FloodgateLogger |
getLogger() |
String |
getName() |
long |
getVerifyLinkTimeout() |
boolean |
isAllowLinking() |
boolean |
isEnabled() |
boolean |
isRequestedPlayer(org.geysermc.floodgate.api.link.LinkRequest request,
UUID bedrockId) |
void |
onShutdown(ShutdownEvent ignored) |
void |
stop() |
public String createCode()
public boolean isRequestedPlayer(org.geysermc.floodgate.api.link.LinkRequest request,
UUID bedrockId)
public <T extends DatabaseConfig> T getConfig(Class<T> configClass)
T - the config typeconfigClass - the class to convert the config toDatabaseConfigLoader.loadAs(Class)public String getName()
getName in interface org.geysermc.floodgate.api.link.PlayerLinkpublic void stop()
stop in interface org.geysermc.floodgate.api.link.PlayerLinkpublic void onShutdown(ShutdownEvent ignored)
protected ExecutorService getExecutorService()
public boolean isEnabled()
isEnabled in interface org.geysermc.floodgate.api.link.PlayerLinkpublic boolean isAllowLinking()
isAllowLinking in interface org.geysermc.floodgate.api.link.PlayerLinkpublic long getVerifyLinkTimeout()
getVerifyLinkTimeout in interface org.geysermc.floodgate.api.link.PlayerLinkprotected org.geysermc.floodgate.api.logger.FloodgateLogger getLogger()
protected org.geysermc.floodgate.api.FloodgateApi getApi()