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)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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)
-
-
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(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()
-