-
Notifications
You must be signed in to change notification settings - Fork 4
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
Question: How to load and paste a schematic using AWE from Java? #9
Comments
|
Thanks for the bump in the right direction. |
I think I guessed it, jobId? Now to the next problem. |
The return is the number of changed blocks. Its used only to display a message to the player.
I thought that you need to run it as a player not as a console, etc. |
The problem with running it as a player is, that it then requires the player to have permissions. As far as I have seen so far that is. |
Still struggling with AWE 3.1.1 - I managed to get some of it working, but I simply can't get the progressDisplay to kick in. Won't even mention what I've tried, but reflection has been in play. See the code here https://github.com/rlf/uSkyBlock/blob/master/uSkyBlock-AWE311/src/main/java/us/talabrek/ultimateskyblock/handler/asyncworldedit/AWE311Adaptor.java It seems to work for AWE211 (https://github.com/rlf/uSkyBlock/tree/master/uSkyBlock-AWE211) |
Does the progress display show for regular actions? |
It gets called yes, but not for "my" action. |
Its probably because the progress bar is displayed only for "real" players. You would have to add your own method for rendering the progress bar. |
Ok, so the IProgressDisplays are only in play in AWE 3.1.1 when it's an actual player performing the operation? And I take it, you propose somehow making a timer, and keeping track of the progress of the job "manually"? |
You can look at: but this is not in the API + if you are not careful you can cause an exception. |
UPDATE: Please look at the latest update I cleaned up the API and added some stuff that you might need. |
If you don't have anything to add I'm closing the issue. |
Sure, close it for now. Thanks for the support m8! |
Your welcome |
I've been struggling with this for days now.
If I profile the application, and do a
//schem load schematic
followed by a//paste
AWE correctly kicks in, and loads and pastes the schematic without causing the server grief.When I do this programmatically (I have tried perhaps 7 different combinations of classes in play, this is the latest):
Everything but the
Operations.completeBlindly()
seems to be correctly AWEfied.What is the proper procedure, to both read a schematic into a clipboard, and paste it in the world again utilizing AWEs capabilities (the above should work on both AWE 2.1.1 and AWE 3.1.1).
The text was updated successfully, but these errors were encountered: