Closed rawora closed 6 years ago
Deleted my previous response before it was verified. After trying and verifying on the Discord the correct way to do this is:
Orianna.currentMatchForSummoner(summoner).get();
If you get a 403 "Not found" response then the Summoner isn't in a game, else if the line above returns not null they are :)
Hey, sorry for the delay. This should be fixed with ce42468 and should now be in the latest SNAPSHOT. Will be included in next release.
Hey, isInGame() seems to always return true, even if the summoner is not in a game.
I made an if-statement:
if (summoner.isInGame()) { System.out.println("is"); } else { System.out.println("is not"); }
and no matter which summoner I choose, it says they all are in a game.Thank you