Class BukkitPingCounter

java.lang.Object
net.playeranalytics.plugin.scheduling.PluginRunnable
com.djrapitops.plan.TaskSystem.Task
com.djrapitops.plan.gathering.timed.BukkitPingCounter
All Implemented Interfaces:
Runnable, org.bukkit.event.Listener

@Singleton public class BukkitPingCounter extends TaskSystem.Task implements org.bukkit.event.Listener
Task that handles player ping calculation on Bukkit based servers.

Modified PingManager from LagMonitor plugin. https://github.com/games647/LagMonitor/blob/master/src/main/java/com/github/games647/lagmonitor/task/PingManager.java

  • Constructor Details

    • BukkitPingCounter

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

    • register

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

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

      public void addPlayer(UUID uuid)
    • removePlayer

      public void removePlayer(org.bukkit.entity.Player player)
    • onPlayerJoin

      public void onPlayerJoin(org.bukkit.event.player.PlayerJoinEvent joinEvent)
    • onPlayerQuit

      public void onPlayerQuit(org.bukkit.event.player.PlayerQuitEvent quitEvent)
    • clear

      public void clear()