Ursprung
803b591ff4
Commit
73321e4b7e
@ -40,9 +40,8 @@ public class PlaytimeCommand extends BasicCommand{
|
||||
if(!(sender instanceof ProxiedPlayer))
|
||||
return;
|
||||
|
||||
NumberFormat format = NumberFormat.getNumberInstance(Locale.GERMAN);
|
||||
format.setMaximumFractionDigits(2);
|
||||
format.format((SteamwarUser.get((ProxiedPlayer) sender).getOnlinetime() / (double) 3600));
|
||||
String s = Message.parse("TIME_FORMAT", sender);
|
||||
String format = new DecimalFormat(s).format((SteamwarUser.get((ProxiedPlayer) sender).getOnlinetime() / (double) 3600));
|
||||
|
||||
Message.send("HOURS_PLAYED", sender, format);
|
||||
}
|
||||
|
@ -561,3 +561,6 @@ GDPR_STATUS_FINISHED=§7Packen abgeschlossen
|
||||
|
||||
#Playtime Command
|
||||
HOURS_PLAYED=§7Deine Spielzeit beträgt§8: §e{0}h
|
||||
|
||||
#Player
|
||||
TIME_FORMAT=hh:mm:ss
|
In neuem Issue referenzieren
Einen Benutzer sperren