Skip to content

Beaness/mineflayer-tps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d37e1b8 · Jun 11, 2020

History

6 Commits
Oct 27, 2019
Oct 27, 2019
Feb 18, 2020
Oct 27, 2019
Mar 14, 2020
Oct 27, 2019

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