iutils: add accountType() function to API
This commit is contained in:
parent
31aa84a861
commit
437446a56c
|
@ -23,7 +23,7 @@
|
|||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
version = "4.5.8"
|
||||
version = "4.5.9"
|
||||
|
||||
project.extra["PluginName"] = "iUtils"
|
||||
project.extra["PluginDescription"] = "Illumine - Utils required for plugins to function with added automation"
|
||||
|
|
|
@ -4,6 +4,7 @@ import lombok.extern.slf4j.Slf4j;
|
|||
import net.runelite.api.*;
|
||||
import net.runelite.api.coords.WorldPoint;
|
||||
import net.runelite.api.geometry.Cuboid;
|
||||
import net.runelite.api.vars.AccountType;
|
||||
import net.runelite.api.widgets.Widget;
|
||||
import net.runelite.api.widgets.WidgetInfo;
|
||||
import net.runelite.client.callback.ClientThread;
|
||||
|
@ -170,6 +171,10 @@ public class Game {
|
|||
return new iPlayer(this, client.getLocalPlayer(), client.getLocalPlayer().getPlayerComposition());
|
||||
}
|
||||
|
||||
public AccountType accountType() {
|
||||
return getFromClientThread(() -> client.getAccountType());
|
||||
}
|
||||
|
||||
public Position base() {
|
||||
return new Position(client.getBaseX(), client.getBaseY(), client.getPlane());
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
Binary file not shown.
Loading…
Reference in New Issue