Class VelocityConnectorPlugin
java.lang.Object
de.themoep.connectorplugin.velocity.VelocityConnectorPlugin
- All Implemented Interfaces:
ConnectingPlugin
,ConnectorPlugin<com.velocitypowered.api.proxy.Player>
public final class VelocityConnectorPlugin
extends Object
implements ConnectorPlugin<com.velocitypowered.api.proxy.Player>
-
Constructor Summary
ConstructorsConstructorDescriptionVelocityConnectorPlugin
(com.velocitypowered.api.proxy.ProxyServer proxy, org.slf4j.Logger logger, Path dataFolder) -
Method Summary
Modifier and TypeMethodDescriptionGet the bridge helper class for executing certain actions on other serversGet the Connector which is used for sending and handling datagetName()
com.velocitypowered.api.proxy.ProxyServer
getProxy()
getResourceAsStream
(String file) The type of source that this plugin is.void
void
void
void
logWarning
(String message, Throwable... throwables) void
onProxyInitialization
(com.velocitypowered.api.event.proxy.ProxyInitializeEvent event) void
onProxyInitialization
(com.velocitypowered.api.event.proxy.ProxyShutdownEvent event) void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.themoep.connectorplugin.ConnectorPlugin
getGroup, getGroup, getMessageChannel
-
Constructor Details
-
VelocityConnectorPlugin
@Inject public VelocityConnectorPlugin(com.velocitypowered.api.proxy.ProxyServer proxy, org.slf4j.Logger logger, Path dataFolder)
-
-
Method Details
-
onProxyInitialization
public void onProxyInitialization(com.velocitypowered.api.event.proxy.ProxyInitializeEvent event) -
onProxyInitialization
public void onProxyInitialization(com.velocitypowered.api.event.proxy.ProxyShutdownEvent event) -
getConnector
Description copied from interface:ConnectorPlugin
Get the Connector which is used for sending and handling data- Specified by:
getConnector
in interfaceConnectorPlugin<com.velocitypowered.api.proxy.Player>
- Returns:
- The Connector
-
getBridge
Get the bridge helper class for executing certain actions on other servers- Returns:
- The bridge helper
-
runAsync
- Specified by:
runAsync
in interfaceConnectorPlugin<com.velocitypowered.api.proxy.Player>
-
getSourceType
Description copied from interface:ConnectorPlugin
The type of source that this plugin is.MessageTarget.Type.SERVER
orMessageTarget.Type.PROXY
- Specified by:
getSourceType
in interfaceConnectorPlugin<com.velocitypowered.api.proxy.Player>
- Returns:
- The type of
MessageTarget.Type
that this implementation provides.
-
logDebug
- Specified by:
logDebug
in interfaceConnectorPlugin<com.velocitypowered.api.proxy.Player>
-
logInfo
- Specified by:
logInfo
in interfaceConnectorPlugin<com.velocitypowered.api.proxy.Player>
-
logWarning
- Specified by:
logWarning
in interfaceConnectorPlugin<com.velocitypowered.api.proxy.Player>
-
logError
- Specified by:
logError
in interfaceConnectorPlugin<com.velocitypowered.api.proxy.Player>
-
getServerName
- Specified by:
getServerName
in interfaceConnectorPlugin<com.velocitypowered.api.proxy.Player>
-
getGlobalGroup
- Specified by:
getGlobalGroup
in interfaceConnectorPlugin<com.velocitypowered.api.proxy.Player>
-
getGroups
- Specified by:
getGroups
in interfaceConnectorPlugin<com.velocitypowered.api.proxy.Player>
-
getName
- Specified by:
getName
in interfaceConnectingPlugin
-
getProxy
public com.velocitypowered.api.proxy.ProxyServer getProxy() -
getConfig
-
getResourceAsStream
-