1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-12-01 23:13:48 +01:00
Jobs/com/gamingmesh/jobs/container/TopList.java
2016-06-25 16:27:01 +03:00

33 lines
663 B
Java

package com.gamingmesh.jobs.container;
import java.util.Map.Entry;
import com.gamingmesh.jobs.Jobs;
public final class TopList {
private int id;
private int level;
private int exp;
public TopList(int id, int level, int exp) {
this.id = id;
this.level = level;
this.exp = exp;
}
public String getPlayerName() {
Entry<String, PlayerInfo> info = Jobs.getPlayerManager().getPlayerInfoById(this.id);
if (info != null) {
if (info.getValue().getName() != null)
return info.getValue().getName();
}
return "Unknown";
}
public int getLevel() {
return this.level;
}
public int getExp() {
return this.exp;
}
}