@Singleton
public class PingCountTimerBukkit
extends com.djrapitops.plugin.task.AbsRunnable
implements org.bukkit.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 |
---|
PingCountTimerBukkit(PlanConfig config,
DBSystem dbSystem,
ServerInfo serverInfo,
com.djrapitops.plugin.task.RunnableFactory runnableFactory) |
Modifier and Type | Method and Description |
---|---|
void |
addPlayer(org.bukkit.entity.Player player) |
void |
clear() |
void |
onPlayerJoin(org.bukkit.event.player.PlayerJoinEvent joinEvent) |
void |
onPlayerQuit(org.bukkit.event.player.PlayerQuitEvent quitEvent) |
void |
removePlayer(org.bukkit.entity.Player player) |
void |
run() |
@Inject public PingCountTimerBukkit(PlanConfig config, DBSystem dbSystem, ServerInfo serverInfo, com.djrapitops.plugin.task.RunnableFactory runnableFactory)
public void run()
run
in interface java.lang.Runnable
public void addPlayer(org.bukkit.entity.Player player)
public void removePlayer(org.bukkit.entity.Player player)
public void onPlayerJoin(org.bukkit.event.player.PlayerJoinEvent joinEvent)
public void onPlayerQuit(org.bukkit.event.player.PlayerQuitEvent quitEvent)
public void clear()