public class PaperTPSCountTimer extends BukkitTPSCountTimer
plugin
dbSystem, errorHandler, history, latestPlayersOnline, logger, serverInfo
Constructor and Description |
---|
PaperTPSCountTimer(Plan plugin,
DBSystem dbSystem,
ServerInfo serverInfo,
com.djrapitops.plugin.logging.console.PluginLogger logger,
com.djrapitops.plugin.logging.error.ErrorHandler errorHandler) |
Modifier and Type | Method and Description |
---|---|
protected int |
getEntityCount()
Gets the amount of entities on the server for Bukkit / Spigot
|
protected TPS |
getTPS(long diff,
long now,
double cpuUsage,
long usedMemory,
int entityCount,
int chunksLoaded,
int playersOnline,
long freeDiskSpace) |
addNewTPSEntry
getCPUUsage, getFreeDiskSpace, getLatestPlayersOnline, getUsedMemory, run
@Inject public PaperTPSCountTimer(Plan plugin, DBSystem dbSystem, ServerInfo serverInfo, com.djrapitops.plugin.logging.console.PluginLogger logger, com.djrapitops.plugin.logging.error.ErrorHandler errorHandler)
protected TPS getTPS(long diff, long now, double cpuUsage, long usedMemory, int entityCount, int chunksLoaded, int playersOnline, long freeDiskSpace)
getTPS
in class BukkitTPSCountTimer
protected int getEntityCount()
BukkitTPSCountTimer
getEntityCount
in class BukkitTPSCountTimer