UNPKG

@boem312/minecraft-server

Version:

A pure JS library to create Minecraft Java 1.16.3 servers

13 lines (12 loc) 454 B
const { parseProtocol } = require('../../../../functions/parseProtocol.js'); const { brand } = require('../properties/public/dynamic/brand.js'); module.exports = { custom_payload({ channel, data }) { if (channel === 'minecraft:brand') { brand.set.call(this, parseProtocol('string', data)); this.p.stateHandler.updateState.packetReceived.call(this, 'brand'); } // else //not implemented } }