Skip to content
This repository has been archived by the owner on Aug 9, 2022. It is now read-only.

Cant get the name of a champion #158

Open
motion-cloud opened this issue Apr 2, 2020 · 0 comments
Open

Cant get the name of a champion #158

motion-cloud opened this issue Apr 2, 2020 · 0 comments

Comments

@motion-cloud
Copy link

motion-cloud commented Apr 2, 2020

Im trying to get the name of the Champion, which a summoner played in his last game, but its not working.

public Champion getChampion(Platform server, String name) throws RiotApiException { Champion champion = LoLMain.getInstance().getApi().getDataChampion(server, getChampionID(server, name)); return champion; }

public String getChampionName(Platform server, String name) throws RiotApiException {
    return getChampion(server, name).getName();
}

Do I have to change the endpoint ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant