Archiviert
1
0
Dieser Commit ist enthalten in:
Chaoscaot 2020-10-11 13:37:40 +02:00
Ursprung a19e5db5e6
Commit eb9c7df29d
2 geänderte Dateien mit 11 neuen und 0 gelöschten Zeilen

Datei anzeigen

@ -64,6 +64,7 @@ public class WhoisCommand extends BasicCommand {
BungeeCore.send(player, "§7Username§8: §e" + user.getUserName()); BungeeCore.send(player, "§7Username§8: §e" + user.getUserName());
BungeeCore.send(player, "§7UUID§8: §e" + user.getUuid().toString(), "", new ClickEvent(ClickEvent.Action.SUGGEST_COMMAND, user.getUuid().toString())); BungeeCore.send(player, "§7UUID§8: §e" + user.getUuid().toString(), "", new ClickEvent(ClickEvent.Action.SUGGEST_COMMAND, user.getUuid().toString()));
BungeeCore.send(player, "§7ID§8: §e" + user.getId()); BungeeCore.send(player, "§7ID§8: §e" + user.getId());
BungeeCore.send(player, "§7Beigetreten am§8: §e" + user.getFirstjoin().toString());
BungeeCore.send(player, "§7Online Time§8: §e" + new DecimalFormat("###.##").format(user.getOnlinetime() / (double) 3600) + "h"); BungeeCore.send(player, "§7Online Time§8: §e" + new DecimalFormat("###.##").format(user.getOnlinetime() / (double) 3600) + "h");
Team team = Team.get(user.getTeam()); Team team = Team.get(user.getTeam());

Datei anzeigen

@ -244,4 +244,14 @@ public class SteamwarUser {
} }
return 0; return 0;
} }
public Timestamp getFirstjoin() {
ResultSet set = SQL.select("SELECT MIN(StartTime) AS FirstJoin FROM Session WHERE UserID = ?", id);
try {
set.next();
return set.getTimestamp("FirstJoin");
} catch (SQLException throwables) {
throw new SecurityException("Could not load First Join");
}
}
} }