diff --git a/index.js b/index.js index d03b27a..87f99a6 100644 --- a/index.js +++ b/index.js @@ -4,6 +4,9 @@ const util = require('util') const { stylize } = require('./colors') const randomstring = require('randomstring') const ChatMessage = require('prismarine-chat')('1.20.1') +const mc = require('minecraft-protocol') +const moment = require('moment-timezone') +const crypto = require('crypto') const BRIDGE_PREFIX = 'function:' @@ -28,7 +31,10 @@ io.on('connection', (socket) => { socket.emit(BRIDGE_PREFIX + 'core', command) }, randomstring, - ChatMessage + ChatMessage, + mc, + moment, + crypto } }) } diff --git a/package.json b/package.json index c629cd2..79ec8ad 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,9 @@ "author": "", "license": "ISC", "dependencies": { + "minecraft-protocol": "^1.43.1", + "moment": "^2.29.4", + "moment-timezone": "^0.5.43", "prismarine-chat": "^1.8.0", "randomstring": "^1.3.0", "socket.io": "^4.7.1",