A mineflayer plugin to easy get the server tps! You can install from npm.
Look at this.
Or simple:
var mineflayer = require('mineflayer')
var tpsPlugin = require('mineflayer-tps')(mineflayer)
var bot = mineflayer.createBot()
bot.loadPlugin(tpsPlugin) // Load the plugin
// Example how to use
bot.on('chat', (username, message) => {
if (username === bot.username) return
if (message === 'tps') {
bot.chat('Current tps: ' + bot.getTps())
}
})