@boem312/minecraft-server
Version:
A pure JS library to create Minecraft Java 1.16.3 servers
21 lines (19 loc) • 451 B
JavaScript
module.exports = {
sprinting: {
info: {
preventSet: true
},
get() {
return this.p._sprinting;
},
set(newValue) {
const oldValue = this.sprinting;
this.p._sprinting = newValue;
if (oldValue !== newValue)
this.p.emitChange('sprinting', oldValue);
},
init() {
this.p._sprinting = false;
}
}
}