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 Summary

    Constructors
    Constructor
    Description
    FabricPingCounter​(net.playeranalytics.plugin.server.Listeners listeners, PlanConfig config, DBSystem dbSystem, ServerInfo serverInfo, net.playeranalytics.plugin.scheduling.RunnableFactory runnableFactory, net.minecraft.server.dedicated.MinecraftDedicatedServer server)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addPlayer​(net.minecraft.server.network.ServerPlayerEntity player)
     
    void
     
    void
     
    void
     
    boolean
     
    void
    onPlayerJoin​(net.minecraft.server.network.ServerPlayerEntity player)
     
    void
    onPlayerQuit​(net.minecraft.server.network.ServerPlayerEntity player)
     
    void
     
    void
    register​(net.playeranalytics.plugin.scheduling.RunnableFactory runnableFactory)
     
    void
    removePlayer​(net.minecraft.server.network.ServerPlayerEntity 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

    • FabricPingCounter

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