Class SpongePingCounter

  • All Implemented Interfaces:
    java.lang.Runnable

    public class SpongePingCounter
    extends TaskSystem.Task
    Task that handles player ping calculation on Sponge based servers.
    • Constructor Summary

      Constructors 
      Constructor Description
      SpongePingCounter​(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​(org.spongepowered.api.entity.living.player.Player player)  
      void clear()  
      void onPlayerJoin​(org.spongepowered.api.event.network.ClientConnectionEvent.Join joinEvent)  
      void onPlayerQuit​(org.spongepowered.api.event.network.ClientConnectionEvent.Disconnect quitEvent)  
      void register​(net.playeranalytics.plugin.scheduling.RunnableFactory runnableFactory)  
      void removePlayer​(org.spongepowered.api.entity.living.player.Player 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

      • SpongePingCounter

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

      • run

        public void run()
      • register

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

        public void addPlayer​(org.spongepowered.api.entity.living.player.Player player)
      • removePlayer

        public void removePlayer​(org.spongepowered.api.entity.living.player.Player player)
      • onPlayerJoin

        public void onPlayerJoin​(org.spongepowered.api.event.network.ClientConnectionEvent.Join joinEvent)
      • onPlayerQuit

        public void onPlayerQuit​(org.spongepowered.api.event.network.ClientConnectionEvent.Disconnect quitEvent)
      • clear

        public void clear()