Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

World edit action completion event #189

Open
rjworks opened this issue Jul 4, 2020 · 5 comments
Open

World edit action completion event #189

rjworks opened this issue Jul 4, 2020 · 5 comments

Comments

@rjworks
Copy link

rjworks commented Jul 4, 2020

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

@inxomnyaa
Copy link
Owner

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?

@rjworks
Copy link
Author

rjworks commented Jul 4, 2020

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
Copy link
Author

rjworks commented Jul 5, 2020

how can i use countAsync to do this?

@inxomnyaa
Copy link
Owner

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.

@rjworks
Copy link
Author

rjworks commented Jul 8, 2020

ah ok thanks. no pressure

@inxomnyaa inxomnyaa changed the title API World edit action completion event Oct 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants