@Singleton
public class NukkitPingCounter
extends com.djrapitops.plugin.task.AbsRunnable
implements cn.nukkit.event.Listener
Modified PingManager from LagMonitor plugin. https://github.com/games647/LagMonitor/blob/master/src/main/java/com/github/games647/lagmonitor/task/PingManager.java
Constructor and Description |
---|
NukkitPingCounter(PlanConfig config,
DBSystem dbSystem,
ServerInfo serverInfo,
com.djrapitops.plugin.task.RunnableFactory runnableFactory) |
Modifier and Type | Method and Description |
---|---|
void |
addPlayer(cn.nukkit.Player player) |
void |
clear() |
void |
onPlayerJoin(cn.nukkit.event.player.PlayerJoinEvent joinEvent) |
void |
onPlayerQuit(cn.nukkit.event.player.PlayerQuitEvent quitEvent) |
void |
removePlayer(cn.nukkit.Player player) |
void |
run() |
@Inject public NukkitPingCounter(PlanConfig config, DBSystem dbSystem, ServerInfo serverInfo, com.djrapitops.plugin.task.RunnableFactory runnableFactory)
public void run()
run
in interface java.lang.Runnable
public void addPlayer(cn.nukkit.Player player)
public void removePlayer(cn.nukkit.Player player)
public void onPlayerJoin(cn.nukkit.event.player.PlayerJoinEvent joinEvent)
public void onPlayerQuit(cn.nukkit.event.player.PlayerQuitEvent quitEvent)
public void clear()