mitsuki Posted January 20, 2021 Posted January 20, 2021 How do I use the methods for: Player? I've tried using things like: boolean enemyPlayer = Player().getSkullIcon(); int enemyCombatLvl = Player().getCombatLevel(); But I keep getting: Method call expected. Anyone know what I'm doing wrong?
BravoTaco Posted January 20, 2021 Posted January 20, 2021 (edited) 1 hour ago, mitsuki said: How do I use the methods for: Player? I've tried using things like: boolean enemyPlayer = Player().getSkullIcon(); int enemyCombatLvl = Player().getCombatLevel(); But I keep getting: Method call expected. Anyone know what I'm doing wrong? You are calling the Player class. To use methods that are within that class you must first set a Player variable. Also getSkullIcon() does not return a boolean value, it returns an integer. Player player = getPlayers().closest("Bob"); Then once you have set the Player variable you can than call those methods. Player player = getPlayers().closest("Bob"); if (player != null) { int enemyPlayerSkullIcon = player.getSkullIcon(); int enemyCombatLevel = player.getCombatLevel(); } Edited January 20, 2021 by BravoTaco 1 1