Class BungeePingCounter

  • All Implemented Interfaces:
    java.lang.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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addPlayer​(net.md_5.bungee.api.connection.ProxiedPlayer player)  
      void clear()  
      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 Detail

      • BungeePingCounter

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

      • run

        public void run()
        Specified by:
        run in interface java.lang.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()