Skip to content

Beaness/mineflayer-tps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mineflayer-tps

A mineflayer plugin to easy get the server tps! You can install from npm.

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

About

Small mineflayer additional package to get tps

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published