Alvarez Posted March 31, 2015 Share 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? Quote Link to comment Share on other sites More sharing options...
7331337 Posted March 31, 2015 Share Posted March 31, 2015 Player.username.tostring I think, something like that Quote Link to comment Share on other sites More sharing options...
Alvarez Posted March 31, 2015 Author Share 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 Quote Link to comment Share on other sites More sharing options...
Isolate Posted March 31, 2015 Share 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 Quote Link to comment Share on other sites More sharing options...
Krulvis Posted March 31, 2015 Share 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. Quote Link to comment Share on other sites More sharing options...