#My ban addon is broken with the code need help
1 messages · Page 1 of 1 (latest)
Yeah, dynamic properties
do you use 2.0.0-beta?
if then, wrap kickBannedPlayers() inside of a worldLoad after event
||{
"format_version": 2,
"metadata": {
"authors": [
"DraftierMovie66"
],
"generated_with": {
"bridge": [
"2.7.44"
],
"dash": [
"0.11.7"
]
}
},
"header": {
"name": "Auto Ban",
"description": "Auto Ban",
"min_engine_version": [
1,
21,
70
],
"uuid": "cf5b5ac9-1d52-442c-848b-2c557bd4abd8",
"version": [
2,
0,
0
]
},
"modules": [
{
"type": "data",
"uuid": "03a65e7f-7bdd-4294-afa1-eac65aa0ed1f",
"version": [
2,
0,
0
]
}
]
}||
You don't even have the script module
runCommand arg has to be a string, also the ${} only works with this type of quotation marks ``
world.getDimension("overworld").runCommand(`kick "${player.name}"`)
He is using backticks tho