Class BungeePingCounter
- java.lang.Object
-
- net.playeranalytics.plugin.scheduling.PluginRunnable
-
- com.djrapitops.plan.TaskSystem.Task
-
- com.djrapitops.plan.gathering.timed.BungeePingCounter
-
- All Implemented Interfaces:
java.lang.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
Constructors Constructor Description BungeePingCounter(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(net.md_5.bungee.api.connection.ProxiedPlayer player)
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()
-
-
-
Constructor Detail
-
BungeePingCounter
@Inject public BungeePingCounter(net.playeranalytics.plugin.server.Listeners listeners, PlanConfig config, DBSystem dbSystem, ServerInfo serverInfo, net.playeranalytics.plugin.scheduling.RunnableFactory runnableFactory)
-
-
Method Detail
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
-
register
public void register(net.playeranalytics.plugin.scheduling.RunnableFactory runnableFactory)
- Specified by:
register
in classTaskSystem.Task
-
addPlayer
public void addPlayer(net.md_5.bungee.api.connection.ProxiedPlayer player)
-
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()
-
-