#Odd Error. "import is reserved"

7 messages · Page 1 of 1 (latest)

sly horizonBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

dapper canyon
#

Either im just bad at learning and understanding how to code, or KubeJS doesnt like me... I am getting an error [1] SourceFile:36: Error loading KubeJS script: identifier is a reserved word: import (server_scripts:deathBans.js#2) .... but I am not using import x.x I am just learning how to us JS so i am attempting to read docs and examples and have followed out what i think is functional... but clearly im mistaken and need help

blissful crow
#

never seen such an error message before

hollow rover
#

what's the reasoning for parseInt on the command returns?

#

a command is only ever going to return 1 or 0 for if it was successful or not, I see you expecting data back with that scoreboard call, but that's not how it works

dapper canyon
#

Misread how parseint works I guess. Was expecting it to work how you thought I was. Is there a way to achieve my intended result? Sorry I'm new to coding in general. Issue still persisting with odd import error (have been taking a nap lol)

I'm reading about match() as a potential replacment? But am a bit confused by it