Jump to content

Ayylmao420

Members
  • Content Count

    4
  • Joined

  • Last visited

Everything posted by Ayylmao420

  1. No reset condition though 😬
  2. uhh, not sure, i'm a noob so i really don't know what's the correct way lol.
  3. import com.epicbot.api.shared.APIContext; import com.epicbot.api.shared.util.Random; import com.epicbot.api.shared.util.time.Time; import java.util.function.BooleanSupplier; public class Sleep { public static boolean sleep(APIContext apiContext, int timeout) { long startTime = System.currentTimeMillis(); while (apiContext.script().isRunning() && !apiContext.script().isPaused()) { if (System.currentTimeMillis() - startTime >= timeout) { return true; } Time.sleep(10); } return true; } p
×
×
  • Create New...