Miammoai 0 Share Posted May 20, 2018 Hello, I am a nub that just wanted to play with making my own script. I'm following the tutorials and all is fine until I use the "sleepUntil(() -> " function. I use eclipse and JRE 1.8.0_172. for some reason this is not working. Any tips ? Code: https://pastebin.com/A1tivDsU Compile errors: "Description Resource Path Location Type Syntax error on token(s), misplaced construct(s) MainClass.java /Woodcut/src line 23 Java Problem" "Description Resource Path Location Type Syntax error on tokens, Expression expected instead MainClass.java /Woodcut/src line 23 Java Problem" Any tips? for some reason this just won't compile (even trough I have copied it out of other working scripts). Thanks Link to comment Share on other sites More sharing options...
Scorpius 144 Share Posted May 20, 2018 sleepUntil( ()-> Condition , TIMEOUT_MILLISECONDS ); Link to comment Share on other sites More sharing options...
Nuclear Nezz 2056 Share Posted May 20, 2018 Make sure you set the target compile to 1.8 or w/e the fuck it is Link to comment Share on other sites More sharing options...
Miammoai 0 Author Share Posted May 20, 2018 7 minutes ago, zScorpio said: sleepUntil( ()-> Condition , TIMEOUT_MILLISECONDS ); sleepUntil(() -> !getLocalPlayer().isAnimating() , 15000); I am a complete noob at java programming but how does this not fit the "condition: part. The error mentions an int so should i cast it to a Boolean? getLocalPlayer().isAnimating() would return a true or false if I understand correctly. So how is this not a condition? http://prntscr.com/jkek0n http://prntscr.com/jkek97 Link to comment Share on other sites More sharing options...
Miammoai 0 Author Share Posted May 20, 2018 I downloaded eclipse Mars edition. Automatically recognized my JRE's. It works now .. lol Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.