Class VelocityPingCounter
java.lang.Object
net.playeranalytics.plugin.scheduling.PluginRunnable
com.djrapitops.plan.TaskSystem.Task
com.djrapitops.plan.gathering.timed.VelocityPingCounter
- All Implemented Interfaces:
Runnable
Task that handles player ping calculation on Velocity based servers.
Based on PingCountTimerBungee
-
Constructor Summary
ConstructorsConstructorDescriptionVelocityPingCounter(net.playeranalytics.plugin.server.Listeners listeners, PlanVelocity plugin, PlanConfig config, DBSystem dbSystem, ServerInfo serverInfo) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voidonPlayerJoin(com.velocitypowered.api.event.player.ServerConnectedEvent joinEvent) voidonPlayerQuit(com.velocitypowered.api.event.connection.DisconnectEvent quitEvent) voidregister(net.playeranalytics.plugin.scheduling.RunnableFactory runnableFactory) voidremovePlayer(com.velocitypowered.api.proxy.Player player) voidrun()Methods inherited from class net.playeranalytics.plugin.scheduling.PluginRunnable
cancel
-
Constructor Details
-
VelocityPingCounter
@Inject public VelocityPingCounter(net.playeranalytics.plugin.server.Listeners listeners, PlanVelocity plugin, PlanConfig config, DBSystem dbSystem, ServerInfo serverInfo)
-
-
Method Details
-
run
public void run() -
register
public void register(net.playeranalytics.plugin.scheduling.RunnableFactory runnableFactory) - Specified by:
registerin classTaskSystem.Task
-
removePlayer
public void removePlayer(com.velocitypowered.api.proxy.Player player) -
onPlayerJoin
public void onPlayerJoin(com.velocitypowered.api.event.player.ServerConnectedEvent joinEvent) -
onPlayerQuit
public void onPlayerQuit(com.velocitypowered.api.event.connection.DisconnectEvent quitEvent) -
clear
public void clear()
-