This commit is contained in:
Izzel_Aliz
2017-06-30 13:27:08 +08:00
parent 7a21ac1295
commit c6fb20d686
31 changed files with 1766 additions and 76 deletions

View File

@@ -0,0 +1,28 @@
package com.ilummc.bugrepgui.stats;
import org.bukkit.Bukkit;
import org.bukkit.OfflinePlayer;
public class Reporter implements Comparable<Reporter> {
OfflinePlayer player;
Integer amount = 0;
@SuppressWarnings("deprecation")
public Reporter(String player, Integer amount) {
this.player = Bukkit.getOfflinePlayer(player);
this.amount = amount;
}
public Integer getAmount() {
return this.amount;
}
public String getName(){
return this.player.getName();
}
@Override
public int compareTo(Reporter other) {
return this.amount - other.getAmount();
}
}