public class PaperTPSCounter extends BukkitTPSCounter
plugin
dbSystem, errorHandler, history, latestPlayersOnline, logger, serverInfo
Constructor and Description |
---|
PaperTPSCounter(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 PaperTPSCounter(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 BukkitTPSCounter
protected int getEntityCount()
BukkitTPSCounter
getEntityCount
in class BukkitTPSCounter