Class NukkitPingCounter

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

@Singleton public class NukkitPingCounter extends TaskSystem.Task implements cn.nukkit.event.Listener
Task that handles player ping calculation on Nukkit based servers.
  • Constructor Details

    • NukkitPingCounter

      @Inject public NukkitPingCounter(net.playeranalytics.plugin.server.Listeners listeners, PlanConfig config, DBSystem dbSystem, ServerInfo serverInfo)
  • 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(UUID uuid)
    • removePlayer

      public void removePlayer(cn.nukkit.Player player)
    • onPlayerJoin

      public void onPlayerJoin(cn.nukkit.event.player.PlayerJoinEvent joinEvent)
    • onPlayerQuit

      public void onPlayerQuit(cn.nukkit.event.player.PlayerQuitEvent quitEvent)
    • clear

      public void clear()