mirror of
https://code.chipmunk.land/Parker2991/NitoriBot/
synced 2026-12-01 14:45:43 -05:00
20 lines
414 B
JavaScript
20 lines
414 B
JavaScript
const between = require('../util/between')
|
|
|
|
module.exports = {
|
|
name: 'tpr',
|
|
description:['teleport to a random place'],
|
|
|
|
execute (context) {
|
|
const bot = context.bot
|
|
const sender = context.source.player
|
|
|
|
if (!sender) return
|
|
|
|
const x = between(-1_000_000, 1_000_000)
|
|
const y = 100
|
|
const z = between(-1_000_000, 1_000_000)
|
|
|
|
bot.core.run(`tp ${sender.uuid} ${x} ${y} ${z}`)
|
|
}
|
|
}
|