Class SpongePingCounter
java.lang.Object
net.playeranalytics.plugin.scheduling.PluginRunnable
com.djrapitops.plan.TaskSystem.Task
com.djrapitops.plan.gathering.timed.SpongePingCounter
- All Implemented Interfaces:
Runnable
Task that handles player ping calculation on Sponge based servers.
-
Constructor Summary
ConstructorDescriptionSpongePingCounter(net.playeranalytics.plugin.server.Listeners listeners, PlanConfig config, DBSystem dbSystem, ServerInfo serverInfo, net.playeranalytics.plugin.scheduling.RunnableFactory runnableFactory)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPlayer(org.spongepowered.api.entity.living.player.Player player)
void
clear()
void
onPlayerJoin(org.spongepowered.api.event.network.ClientConnectionEvent.Join joinEvent)
void
onPlayerQuit(org.spongepowered.api.event.network.ClientConnectionEvent.Disconnect quitEvent)
void
register(net.playeranalytics.plugin.scheduling.RunnableFactory runnableFactory)
void
removePlayer(org.spongepowered.api.entity.living.player.Player player)
void
run()
Methods inherited from class net.playeranalytics.plugin.scheduling.PluginRunnable
cancel
-
Constructor Details
-
SpongePingCounter
@Inject public SpongePingCounter(net.playeranalytics.plugin.server.Listeners listeners, PlanConfig config, DBSystem dbSystem, ServerInfo serverInfo, net.playeranalytics.plugin.scheduling.RunnableFactory runnableFactory)
-
-
Method Details
-
run
public void run() -
register
public void register(net.playeranalytics.plugin.scheduling.RunnableFactory runnableFactory)- Specified by:
register
in classTaskSystem.Task
-
addPlayer
public void addPlayer(org.spongepowered.api.entity.living.player.Player player) -
removePlayer
public void removePlayer(org.spongepowered.api.entity.living.player.Player player) -
onPlayerJoin
public void onPlayerJoin(org.spongepowered.api.event.network.ClientConnectionEvent.Join joinEvent) -
onPlayerQuit
public void onPlayerQuit(org.spongepowered.api.event.network.ClientConnectionEvent.Disconnect quitEvent) -
clear
public void clear()
-