Class NuVotifierVelocity
java.lang.Object
com.vexsoftware.votifier.velocity.NuVotifierVelocity
- All Implemented Interfaces:
com.vexsoftware.votifier.platform.ProxyVotifierPlugin,com.vexsoftware.votifier.platform.VotifierPlugin,com.vexsoftware.votifier.VoteHandler
public class NuVotifierVelocity
extends Object
implements com.vexsoftware.votifier.VoteHandler, com.vexsoftware.votifier.platform.ProxyVotifierPlugin
-
Field Summary
FieldsModifier and TypeFieldDescriptionorg.slf4j.Loggercom.velocitypowered.api.proxy.ProxyServerFields inherited from interface com.vexsoftware.votifier.platform.VotifierPlugin
KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCollection<com.vexsoftware.votifier.platform.BackendServer> org.slf4j.Loggercom.vexsoftware.votifier.platform.LoggingAdaptercom.vexsoftware.votifier.platform.scheduler.VotifierSchedulercom.velocitypowered.api.proxy.ProxyServerOptional<com.vexsoftware.votifier.platform.BackendServer> booleanisDebug()voidvoidonProxyReload(com.velocitypowered.api.event.proxy.ProxyReloadEvent event) voidonServerStart(com.velocitypowered.api.event.proxy.ProxyInitializeEvent event) voidonServerStop(com.velocitypowered.api.event.proxy.ProxyShutdownEvent event) voidonVoteReceived(com.vexsoftware.votifier.model.Vote vote, com.vexsoftware.votifier.net.VotifierSession.ProtocolVersion protocolVersion, String remoteAddress) booleanreload()
-
Field Details
-
logger
@Inject public org.slf4j.Logger logger -
configDir
-
server
@Inject public com.velocitypowered.api.proxy.ProxyServer server
-
-
Constructor Details
-
NuVotifierVelocity
public NuVotifierVelocity()
-
-
Method Details
-
reload
public boolean reload() -
onServerStart
public void onServerStart(com.velocitypowered.api.event.proxy.ProxyInitializeEvent event) -
onServerStop
public void onServerStop(com.velocitypowered.api.event.proxy.ProxyShutdownEvent event) -
onProxyReload
public void onProxyReload(com.velocitypowered.api.event.proxy.ProxyReloadEvent event) -
getServer
public com.velocitypowered.api.proxy.ProxyServer getServer() -
getLogger
public org.slf4j.Logger getLogger() -
getPluginLogger
public com.vexsoftware.votifier.platform.LoggingAdapter getPluginLogger()- Specified by:
getPluginLoggerin interfacecom.vexsoftware.votifier.platform.VotifierPlugin
-
getScheduler
public com.vexsoftware.votifier.platform.scheduler.VotifierScheduler getScheduler()- Specified by:
getSchedulerin interfacecom.vexsoftware.votifier.platform.VotifierPlugin
-
isDebug
public boolean isDebug()- Specified by:
isDebugin interfacecom.vexsoftware.votifier.platform.VotifierPlugin
-
getTokens
- Specified by:
getTokensin interfacecom.vexsoftware.votifier.platform.VotifierPlugin
-
getProtocolV1Key
- Specified by:
getProtocolV1Keyin interfacecom.vexsoftware.votifier.platform.VotifierPlugin
-
onVoteReceived
public void onVoteReceived(com.vexsoftware.votifier.model.Vote vote, com.vexsoftware.votifier.net.VotifierSession.ProtocolVersion protocolVersion, String remoteAddress) - Specified by:
onVoteReceivedin interfacecom.vexsoftware.votifier.VoteHandler
-
onError
- Specified by:
onErrorin interfacecom.vexsoftware.votifier.VoteHandler
-
getAllBackendServers
- Specified by:
getAllBackendServersin interfacecom.vexsoftware.votifier.platform.ProxyVotifierPlugin
-
getServer
- Specified by:
getServerin interfacecom.vexsoftware.votifier.platform.ProxyVotifierPlugin
-