blob: 6c6085e586b6a92020b0e0a057947bf84da01b77 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
package eu.olli.cowlection.data;
public class SlothStalkingData {
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 SlothStalkingData() {
}
public String getPlayerName() {
return username;
}
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;
}
}
|