Class BungeePingCounter
java.lang.Object
net.playeranalytics.plugin.scheduling.PluginRunnable
com.djrapitops.plan.TaskSystem.Task
com.djrapitops.plan.gathering.timed.BungeePingCounter
- All Implemented Interfaces:
Runnable
,net.md_5.bungee.api.plugin.Listener
@Singleton
public class BungeePingCounter
extends TaskSystem.Task
implements net.md_5.bungee.api.plugin.Listener
Task that handles player ping calculation on Bungee based servers.
-
Constructor Summary
ConstructorDescriptionBungeePingCounter(net.playeranalytics.plugin.server.Listeners listeners, PlanConfig config, DBSystem dbSystem, ServerInfo serverInfo)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
clear()
void
onPlayerJoin(net.md_5.bungee.api.event.ServerConnectedEvent joinEvent)
void
onPlayerQuit(net.md_5.bungee.api.event.ServerDisconnectEvent quitEvent)
void
register(net.playeranalytics.plugin.scheduling.RunnableFactory runnableFactory)
void
removePlayer(net.md_5.bungee.api.connection.ProxiedPlayer player)
void
run()
Methods inherited from class net.playeranalytics.plugin.scheduling.PluginRunnable
cancel
-
Constructor Details
-
BungeePingCounter
@Inject public BungeePingCounter(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(net.md_5.bungee.api.connection.ProxiedPlayer player) -
onPlayerJoin
public void onPlayerJoin(net.md_5.bungee.api.event.ServerConnectedEvent joinEvent) -
onPlayerQuit
public void onPlayerQuit(net.md_5.bungee.api.event.ServerDisconnectEvent quitEvent) -
clear
public void clear()
-