Class VelocityBridge
java.lang.Object
ml.karmaconfigs.api.common.utils.BridgeLoader<KarmaSource>
ml.karmaconfigs.api.velocity.loader.VelocityBridge
Bridge between Velocity and KarmaAPI
-
Constructor Summary
ConstructorsConstructorDescriptionVelocityBridge(KarmaSource source, com.velocitypowered.api.proxy.ProxyServer sv, com.velocitypowered.api.plugin.PluginContainer owner)Initialize the bridge loader -
Method Summary
Modifier and TypeMethodDescriptionstatic com.velocitypowered.api.proxy.ProxyServerGet the serverstatic KarmaSourceGet the loader instancevoidstart()Start the bridge loadervoidstop()Stop the bridgeMethods inherited from class ml.karmaconfigs.api.common.utils.BridgeLoader
connect, connect, connect, isRunning, setRunning
-
Constructor Details
-
VelocityBridge
public VelocityBridge(KarmaSource source, com.velocitypowered.api.proxy.ProxyServer sv, com.velocitypowered.api.plugin.PluginContainer owner)Initialize the bridge loader- Parameters:
source- the source classsv- the server where the bridge will be doneowner- the bridge owner
-
-
Method Details
-
start
public void start()Start the bridge loader- Specified by:
startin classBridgeLoader<KarmaSource>
-
stop
public void stop()Stop the bridge- Specified by:
stopin classBridgeLoader<KarmaSource>
-
getSource
Get the loader instance- Returns:
- the loader instance
-
getServer
public static com.velocitypowered.api.proxy.ProxyServer getServer()Get the server- Returns:
- the server
-