Class SpongePingCounter

java.lang.Object
net.playeranalytics.plugin.scheduling.PluginRunnable
com.djrapitops.plan.TaskSystem.Task
com.djrapitops.plan.gathering.timed.SpongePingCounter
All Implemented Interfaces:
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)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addPlayer​(UUID uuid)
     
    void
     
    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 Details

    • SpongePingCounter

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

    • 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(UUID uuid)
    • 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()