mirror of
https://github.com/2006-Scape/Parabot-317-API-Minified.git
synced 2026-07-03 00:38:00 +00:00
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package org.rev317.min.api.methods;
|
||||
|
||||
import org.parabot.environment.api.utils.Time;
|
||||
import org.parabot.environment.scripts.framework.SleepCondition;
|
||||
import org.rev317.min.Loader;
|
||||
|
||||
/**
|
||||
@@ -113,4 +115,19 @@ public class Game {
|
||||
return Loader.getClient().isLoggedIn();
|
||||
}
|
||||
|
||||
/**
|
||||
* Drops the client and returns if the game is logged out or not
|
||||
* @return True if game is logged out, false if not
|
||||
*/
|
||||
public static boolean dropClient(){
|
||||
Loader.getClient().dropClient();
|
||||
Time.sleep(new SleepCondition() {
|
||||
@Override
|
||||
public boolean isValid() {
|
||||
return isLoggedIn();
|
||||
}
|
||||
}, 2500);
|
||||
return !isLoggedIn();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user