1.0.1 • Published 4 years ago

mineflayer-tps v1.0.1

Weekly downloads
20
License
ISC
Repository
github
Last release
4 years ago

mineflayer-tps

A mineflayer plugin to easy get the server tps!

Usage

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())
  }
})