mirror of
https://github.com/plexusorg/Plex.git
synced 2025-06-29 06:46:43 +00:00
A bit more work on the API
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user