Alvarez Posted March 31, 2015 Posted March 31, 2015 Looking for a way to get the username of the player the bot has control over without using the deprecated method client.getUsername() Any options?
7331337 Posted March 31, 2015 Posted March 31, 2015 Player.username.tostring I think, something like that
Alvarez Posted March 31, 2015 Author Posted March 31, 2015 (edited) Got it: this.client.accessor.getMyPlayer().getName() **Keep in mind that this does not care if your login name is an email** Edited March 31, 2015 by Alvarez
Isolate Posted March 31, 2015 Posted March 31, 2015 Got it: this.client.accessor.getMyPlayer().getName() **Keep in mind that this does not care if your login name is an email** myPlayer().getName()? 1
Krulvis Posted March 31, 2015 Posted March 31, 2015 myPlayer().getName()? I am assuming he is aiming at something that doesn't involve api, so a static class can be build. myPlayer() requires API usage.