MagicWE icon indicating copy to clipboard operation
MagicWE copied to clipboard

World edit action completion event

Open rjworks opened this issue 4 years ago • 5 comments

is there a way to check that all blocks were placed using the api?

rjworks avatar Jul 04 '20 17:07 rjworks

You could use countAsync before and after the action. Normally if using API methods all blocks place anyways, and the method will return true. What is your use / what are you trying to archive?

inxomnyaa avatar Jul 04 '20 19:07 inxomnyaa

I’m using your nice API to place blocks. Basically when I reset mines and the players are in certain areas, I teleport them to the top to prevent from suffocating but since blocks don’t get placed instantly, the feature is not working as expected so I asked if there was a way to check if blocks are done placing so then I can teleport them to the top

rjworks avatar Jul 04 '20 22:07 rjworks

how can i use countAsync to do this?

rjworks avatar Jul 05 '20 04:07 rjworks

I understand now. I think it is not possible yet. I could add an Event, but at the current code state it would pollute the cleanup branch again. I will do this some time later.

inxomnyaa avatar Jul 08 '20 13:07 inxomnyaa

ah ok thanks. no pressure

rjworks avatar Jul 08 '20 21:07 rjworks