1
0
mirror of https://github.com/Zrips/Jobs.git synced 2025-01-21 15:41:19 +01:00
Jobs/com/gamingmesh/jobs/container/PlayerInfo.java
2017-02-15 12:23:24 +02:00

43 lines
816 B
Java

package com.gamingmesh.jobs.container;
import java.util.UUID;
import com.gamingmesh.jobs.Jobs;
public class PlayerInfo {
int id;
String name = "Unknown";
private Long seen;
private UUID uuid;
private JobsPlayer player;
public PlayerInfo(String name, int id, UUID uuid, Long seen) {
this.name = name;
this.id = id;
this.uuid = uuid;
this.seen = seen;
player = Jobs.getPlayerManager().getJobsPlayer(uuid);
}
public String getName() {
if (player == null)
player = Jobs.getPlayerManager().getJobsPlayer(uuid);
if (player != null)
return player.getUserName();
return name;
}
public int getID() {
return id;
}
public Long getSeen() {
return seen;
}
public UUID getUuid() {
return uuid;
}
}