mirror of
https://github.com/2006-Scape/Parabot-317-API-Minified.git
synced 2026-07-02 16:49:09 +00:00
Merge pull request #56 from Parabot/feature/login
[FEATURE] Login method
This commit is contained in:
@@ -55,6 +55,8 @@ public interface Client {
|
||||
|
||||
void dropClient();
|
||||
|
||||
void login(String username, String password, boolean reconnecting);
|
||||
|
||||
int[] getCurrentStats();
|
||||
|
||||
int[] getSettings();
|
||||
|
||||
@@ -142,4 +142,22 @@ public class Game {
|
||||
return !isLoggedIn();
|
||||
}
|
||||
|
||||
/**
|
||||
* Login to a server
|
||||
* @param username String
|
||||
* @param password String
|
||||
* @param reconnecting True if it's a retry, false if not
|
||||
*/
|
||||
public static void login(String username, String password, boolean reconnecting) {
|
||||
Loader.getClient().login(username, password, reconnecting);
|
||||
}
|
||||
|
||||
/**
|
||||
* Login to a server
|
||||
* @param username String
|
||||
* @param password String
|
||||
*/
|
||||
public static void login(String username, String password) {
|
||||
login(username, password, false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,7 +3,6 @@ package org.rev317.min.debug;
|
||||
import org.parabot.core.Context;
|
||||
import org.parabot.core.paint.AbstractDebugger;
|
||||
import org.parabot.core.paint.PaintDebugger;
|
||||
import org.rev317.min.api.methods.Game;
|
||||
import org.rev317.min.api.methods.Interfaces;
|
||||
|
||||
import java.awt.*;
|
||||
|
||||
Reference in New Issue
Block a user