mitsuki Posted January 20, 2021 Share 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? Quote Link to comment Share on other sites More sharing options...
BravoTaco Posted January 20, 2021 Share Posted January 20, 2021 (edited) On 1/20/2021 at 6:10 PM, 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? Expand 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 Quote Link to comment Share on other sites More sharing options...
mitsuki Posted January 20, 2021 Author Share Posted January 20, 2021 Thank you so much dude Quote Link to comment Share on other sites More sharing options...