Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
CommandLastonline: fix time getter
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFaser committed Nov 10, 2023
1 parent b8766ee commit ac018b5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public boolean onCommand(@NotNull CommandSender commandSender, @NotNull Command

OfflinePlayer player = fTarget.getOfflinePlayer();

long playedTime = player.getFirstPlayed();
long playedTime = player.getLastPlayed();
String timeInSeconds = String.valueOf((playedTime- System.currentTimeMillis()) / 1000).substring(1);

String message = locale.getVaultString(commandSender, this + ".message")
Expand Down

0 comments on commit ac018b5

Please sign in to comment.