public static final int getCurrentWorld(final ClassLoader loader)
throws Exception {
final Field field = loader.loadClass("client").getDeclaredField("z");
if (!field.isAccessible())
field.setAccessible(true);
return field.getInt(null) * -2588411;
}
Usage: getCurrentWorld(bot.D());
currently using this to check if im in world 85 then i hop if i am