From 20dc8fca3e0a16fd2ea27b310c3850340ef109fd Mon Sep 17 00:00:00 2001 From: zOnlyKroks Date: Sat, 1 Jan 2022 12:24:36 +0100 Subject: [PATCH] . --- src/de/steamwar/bungeecore/commands/PlaytimeCommand.java | 2 +- src/de/steamwar/messages/BungeeCore.properties | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/de/steamwar/bungeecore/commands/PlaytimeCommand.java b/src/de/steamwar/bungeecore/commands/PlaytimeCommand.java index c5ff347..5953e03 100644 --- a/src/de/steamwar/bungeecore/commands/PlaytimeCommand.java +++ b/src/de/steamwar/bungeecore/commands/PlaytimeCommand.java @@ -40,7 +40,7 @@ public class PlaytimeCommand extends BasicCommand{ if(!(sender instanceof ProxiedPlayer)) return; - NumberFormat format = NumberFormat.getNumberInstance(LocaleUtils.toLocale(Message.parse("DECIMAL_FORMAT", sender))); + NumberFormat format = NumberFormat.getNumberInstance(((ProxiedPlayer)sender).getLocale()); format.setMaximumFractionDigits(2); String formattedText = format.format((SteamwarUser.get((ProxiedPlayer) sender).getOnlinetime() / (double) 3600)); diff --git a/src/de/steamwar/messages/BungeeCore.properties b/src/de/steamwar/messages/BungeeCore.properties index 436827d..5e46bc5 100644 --- a/src/de/steamwar/messages/BungeeCore.properties +++ b/src/de/steamwar/messages/BungeeCore.properties @@ -570,5 +570,4 @@ GDPR_STATUS_LOGS=§7Suche und packe logs... GDPR_STATUS_FINISHED=§7Packen abgeschlossen #Playtime Command -HOURS_PLAYED=§7Deine Spielzeit beträgt§8: §e{0}h -DECIMAL_FORMAT=###,## \ No newline at end of file +HOURS_PLAYED=§7Deine Spielzeit beträgt§8: §e{0}h \ No newline at end of file