Class VelocityBridge

java.lang.Object
ml.karmaconfigs.api.common.utils.BridgeLoader<KarmaSource>
ml.karmaconfigs.api.velocity.loader.VelocityBridge

public class VelocityBridge extends BridgeLoader<KarmaSource>
Bridge between Velocity and KarmaAPI
  • 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 class
      sv - the server where the bridge will be done
      owner - the bridge owner
  • Method Details

    • start

      public void start()
      Start the bridge loader
      Specified by:
      start in class BridgeLoader<KarmaSource>
    • stop

      public void stop()
      Stop the bridge
      Specified by:
      stop in class BridgeLoader<KarmaSource>
    • getSource

      public static 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