Class SpongePingCounter
- java.lang.Object
-
- net.playeranalytics.plugin.scheduling.PluginRunnable
-
- com.djrapitops.plan.TaskSystem.Task
-
- com.djrapitops.plan.gathering.timed.SpongePingCounter
-
- All Implemented Interfaces:
java.lang.Runnable
public class SpongePingCounter extends TaskSystem.Task
Task that handles player ping calculation on Sponge based servers.
-
-
Constructor Summary
Constructors Constructor Description SpongePingCounter(net.playeranalytics.plugin.server.Listeners listeners, PlanConfig config, DBSystem dbSystem, ServerInfo serverInfo, net.playeranalytics.plugin.scheduling.RunnableFactory runnableFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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()
-
-
-
Constructor Detail
-
SpongePingCounter
@Inject public SpongePingCounter(net.playeranalytics.plugin.server.Listeners listeners, PlanConfig config, DBSystem dbSystem, ServerInfo serverInfo, net.playeranalytics.plugin.scheduling.RunnableFactory runnableFactory)
-
-
Method Detail
-
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()
-
-