UNPKG

@boem312/minecraft-server

Version:

A pure JS library to create Minecraft Java 1.16.3 servers

22 lines (20 loc) 539 B
module.exports = { get() { const Text = require('../../../../Text.js'); let inp = this.p._input; if (inp !== null) if (typeof inp === 'string') { this.p.reset(); this.p._array = Text.stringToArray(inp); } else { this.p.reset(); this.p._array = Text.parseArray(inp); } return this.p._array; }, set(val) { this.p.reset(); this.p._input = val; this.p.emitChange(); } }