#no setter for property

1 messages · Page 1 of 1 (latest)

weary frost
#

[Scripting][error]-Plugin [§2One§aBlock §6Bedrock BP - 0.1.0] - [main.js] ran with error: [TypeError: no setter for property at <anonymous> (main.js:26)
at find (native)
at <anonymous> (main.js:26)
]

#

no setter for property

crimson ibexBOT
#
Debug Result

There are 6 errors in this [code](#1094113747649433761 message):

<repl>.js:3:1 - error TS2304: Cannot find name 'overworld'.

3 overworld.runCommandAsync(`scoreboard players add phase "OneBlock:system" 0`);
  ~~~~~~~~~
<repl>.js:4:1 - error TS2304: Cannot find name 'overworld'.

4 overworld.runCommandAsync(`scoreboard players add phase_block "OneBlock:system" 0`);
  ~~~~~~~~~
<repl>.js:5:1 - error TS2304: Cannot find name 'overworld'.

5 overworld.runCommandAsync(`scoreboard players add total_block "OneBlock:system" 0`);
  ~~~~~~~~~
<repl>.js:11:41 - error TS2540: Cannot assign to 'displayName' because it is a read-only property.

11     .find((participant) => (participant.displayName = "phase")),//raw26
                                           ~~~~~~~~~~~
<repl>.js:15:41 - error TS2540: Cannot assign to 'displayName' because it is a read-only property.

15     .find((participant) => (participant.displayName = "phase_block")),
                                           ~~~~~~~~~~~
<repl>.js:19:41 - error TS2540: Cannot assign to 'displayName' because it is a read-only property.

19     .find((participant) => (participant.displayName = "total_block")),
                                           ~~~~~~~~~~~