> For the complete documentation index, see [llms.txt](https://stevieplaysmc4.gitbook.io/mcduels/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://stevieplaysmc4.gitbook.io/mcduels/api/untitled.md).

# API

If you want to get players statistics, use this.

\
McDuelsAPI api = McDuelAPI.API(); \
int kills = api.getKills(player); \
int deaths = api.getDeaths(player); \
int lost = api.getLost(player); \
int won = api.getWon(player); \
double kdr = api.getKdr(player); \
int elo = api.getGlobalElo(player); \
int selo = api.getElo(player, type); \
boolean IsPlayerInGame = api.isPlayerInGame(player);

**There are Five Elo Types:** \
Duel1v1 \
Battle1v1 \
Battle2v2 \
Battle3v3 \
Global

By upload the external jar plugin to your eclipse, this will be able to work.
