Class BungeePingCounter

java.lang.Object
net.playeranalytics.plugin.scheduling.PluginRunnable
com.djrapitops.plan.TaskSystem.Task
com.djrapitops.plan.gathering.timed.BungeePingCounter
All Implemented Interfaces:
Runnable, net.md_5.bungee.api.plugin.Listener

@Singleton public class BungeePingCounter extends TaskSystem.Task implements net.md_5.bungee.api.plugin.Listener
Task that handles player ping calculation on Bungee based servers.
  • Constructor Summary

    Constructors
    Constructor
    Description
    BungeePingCounter​(net.playeranalytics.plugin.server.Listeners listeners, PlanConfig config, DBSystem dbSystem, ServerInfo serverInfo, net.playeranalytics.plugin.scheduling.RunnableFactory runnableFactory)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addPlayer​(net.md_5.bungee.api.connection.ProxiedPlayer player)
     
    void
     
    void
    onPlayerJoin​(net.md_5.bungee.api.event.ServerConnectedEvent joinEvent)
     
    void
    onPlayerQuit​(net.md_5.bungee.api.event.ServerDisconnectEvent quitEvent)
     
    void
    register​(net.playeranalytics.plugin.scheduling.RunnableFactory runnableFactory)
     
    void
    removePlayer​(net.md_5.bungee.api.connection.ProxiedPlayer player)
     
    void
    run()
     

    Methods inherited from class net.playeranalytics.plugin.scheduling.PluginRunnable

    cancel

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BungeePingCounter

      @Inject public BungeePingCounter(net.playeranalytics.plugin.server.Listeners listeners, PlanConfig config, DBSystem dbSystem, ServerInfo serverInfo, net.playeranalytics.plugin.scheduling.RunnableFactory runnableFactory)
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable
    • register

      public void register(net.playeranalytics.plugin.scheduling.RunnableFactory runnableFactory)
      Specified by:
      register in class TaskSystem.Task
    • addPlayer

      public void addPlayer(net.md_5.bungee.api.connection.ProxiedPlayer player)
    • removePlayer

      public void removePlayer(net.md_5.bungee.api.connection.ProxiedPlayer player)
    • onPlayerJoin

      public void onPlayerJoin(net.md_5.bungee.api.event.ServerConnectedEvent joinEvent)
    • onPlayerQuit

      public void onPlayerQuit(net.md_5.bungee.api.event.ServerDisconnectEvent quitEvent)
    • clear

      public void clear()