[+] Create sleep() method

This commit is contained in:
Hykilpikonna
2020-02-21 13:59:22 -05:00
parent ad254f9364
commit 0e228149f6
@@ -57,4 +57,21 @@ public class MiscUtils
{
return String.format("[%s,%s,%s]", pos.getX(), pos.getY(), pos.getZ());
}
/**
* Sleep without exceptions
*
* @param ms Time in ms
*/
public static void sleep(long ms)
{
try
{
Thread.sleep(ms);
}
catch (InterruptedException e)
{
e.printStackTrace();
}
}
}