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
Task that handles player ping calculation on Fabric based servers.
-
Constructor Summary
ConstructorDescriptionFabricPingCounter(net.playeranalytics.plugin.server.Listeners listeners, PlanConfig config, DBSystem dbSystem, ServerInfo serverInfo, net.minecraft.server.dedicated.MinecraftDedicatedServer server)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
clear()
void
disable()
void
enable()
boolean
void
onPlayerJoin(net.minecraft.server.network.ServerPlayerEntity player)
void
onPlayerQuit(net.minecraft.server.network.ServerPlayerEntity player)
void
register()
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
-
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() -
register
public void register(net.playeranalytics.plugin.scheduling.RunnableFactory runnableFactory)- Specified by:
register
in classTaskSystem.Task
-
addPlayer
-
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 interfaceFabricListener
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceFabricListener
-
enable
public void enable()- Specified by:
enable
in interfaceFabricListener
-
disable
public void disable()- Specified by:
disable
in interfaceFabricListener
-