A bit more work on the API

This commit is contained in:
Focusvity
2022-05-18 20:31:15 +10:00
parent 7fe28ae8cb
commit 7efa151157
19 changed files with 89 additions and 47 deletions

View File

@ -9,7 +9,7 @@ import net.kyori.adventure.text.format.NamedTextColor;
import org.json.JSONObject;
@Getter
public enum Rank implements IRank
public enum Rank implements IRank<Rank>
{
IMPOSTOR(-1, "<aqua>an <yellow>Impostor<reset>", "Impostor", "<dark_gray>[<yellow>Imp<dark_gray>]", NamedTextColor.YELLOW),
NONOP(0, "a <white>Non-Op<reset>", "Non-Op", "", NamedTextColor.WHITE),
@ -41,11 +41,6 @@ public enum Rank implements IRank
this.color = color;
}
public boolean isAtLeast(IRank rank)
{
return this.level >= rank.getLevel();
}
public boolean isAtLeast(Rank rank)
{
return this.level >= rank.getLevel();