Open matvejs16 opened 2 years ago
Same problem and same error with server.rconConnection.util.getEntityData()
Forgot, minecraft version: 1.12.2 Forge 1.12.2 Server
Well for one the node process shouldn’t crash from invalid regex, so I’ll need to debug and fix that one,
but I’m assuming the regex will also need to be altered from the default to accommodate for it being forge, I’ll try and respond with a fix tonight or tomorrow
The problem is with /data command, that command added to minecraft in 1.13 version
Ah right, there was a way to obtain xyz coords before 1.13, I’ll have to check the git history
Don't forget about server.rconConnection.util.getEntityData() That uses /data command too
I have somewhat the same problem with vanilla 1.18.2 Trying to get playerData aaaand... crash:
2022-04-27 13:29:13 error: uncaughtException: Cannot read properties of null (reading '2')
TypeError: Cannot read properties of null (reading '2')
at Object.
using:
server.rconConnection.util.getEntityData(event.player).then(entityData => {
console.log(entityData);
});
Node script crashes when using server.rconConnection.util.getLocation(event.player)