Class FabricPingCounter

java.lang.Object
net.playeranalytics.plugin.scheduling.PluginRunnable
com.djrapitops.plan.TaskSystem.Task
net.playeranalytics.plan.gathering.timed.FabricPingCounter
All Implemented Interfaces:
Runnable, FabricListener

public class FabricPingCounter extends TaskSystem.Task implements FabricListener
Task that handles player ping calculation on Fabric based servers.
  • Constructor Details

    • FabricPingCounter

      @Inject public FabricPingCounter(net.playeranalytics.plugin.server.Listeners listeners, PlanConfig config, DBSystem dbSystem, ServerInfo serverInfo, net.minecraft.server.dedicated.MinecraftDedicatedServer server)
  • 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(net.minecraft.server.network.ServerPlayerEntity player)
    • onPlayerJoin

      public void onPlayerJoin(net.minecraft.server.network.ServerPlayerEntity player)
    • onPlayerQuit

      public void onPlayerQuit(net.minecraft.server.network.ServerPlayerEntity player)
    • clear

      public void clear()
    • register

      public void register()
      Specified by:
      register in interface FabricListener
    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface FabricListener
    • enable

      public void enable()
      Specified by:
      enable in interface FabricListener
    • disable

      public void disable()
      Specified by:
      disable in interface FabricListener