iutils: add accountType() function to API

This commit is contained in:
illumineawake 2021-09-10 16:41:21 +10:00
parent 31aa84a861
commit 437446a56c
4 changed files with 7 additions and 2 deletions

View File

@ -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"

View File

@ -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