diff options
Diffstat (limited to 'src/main/java/eu/olli/cowmoonication/util/SlothStalking.java')
| -rw-r--r-- | src/main/java/eu/olli/cowmoonication/util/SlothStalking.java | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/src/main/java/eu/olli/cowmoonication/util/SlothStalking.java b/src/main/java/eu/olli/cowmoonication/util/SlothStalking.java deleted file mode 100644 index 9e659ec..0000000 --- a/src/main/java/eu/olli/cowmoonication/util/SlothStalking.java +++ /dev/null @@ -1,48 +0,0 @@ -package eu.olli.cowmoonication.util; - -public class SlothStalking { - private String username; - private String rank; - private String rank_formatted; - // private boolean online; - private long last_login; - private long last_logout; - private String last_game; - - /** - * No-args constructor for GSON - */ - public SlothStalking() { - } - - public String getPlayerNameFormatted() { - return rank_formatted.replace('&', 'ยง') + " " + username; - } - - public long getLastLogin() { - return last_login; - } - - public long getLastLogout() { - return last_logout; - } - - public String getLastGame() { - return last_game; - } - - public boolean hasNeverJoinedHypixel() { - // example player that has never joined Hypixel (as of April 2020): Joe - return rank == null && last_login == 0; - } - - public boolean hasNeverLoggedOut() { - // example player that has no logout value (as of April 2020): Pig (in general accounts that haven't logged in for a few years) - return last_login != 0 && last_logout == 0; - } - - public boolean isHidingOnlineStatus() { - // example players: any higher ranked player (mods, admins, ...) - return last_login == 0 && last_logout == 0; - } -} |
