From 94fe11933048416fade1f7968e34ea126a4de883 Mon Sep 17 00:00:00 2001 From: zOnlyKroks Date: Wed, 29 Dec 2021 10:19:53 +0100 Subject: [PATCH] Format --- src/de/steamwar/bungeecore/commands/PlaytimeCommand.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/de/steamwar/bungeecore/commands/PlaytimeCommand.java b/src/de/steamwar/bungeecore/commands/PlaytimeCommand.java index 83805a5..862515c 100644 --- a/src/de/steamwar/bungeecore/commands/PlaytimeCommand.java +++ b/src/de/steamwar/bungeecore/commands/PlaytimeCommand.java @@ -25,9 +25,6 @@ import net.md_5.bungee.api.CommandSender; import net.md_5.bungee.api.connection.ProxiedPlayer; import java.text.DecimalFormat; -import java.text.Format; -import java.text.NumberFormat; -import java.util.Locale; public class PlaytimeCommand extends BasicCommand{ @@ -43,6 +40,6 @@ public class PlaytimeCommand extends BasicCommand{ String s = Message.parse("TIME_FORMAT", sender); String format = new DecimalFormat(s).format((SteamwarUser.get((ProxiedPlayer) sender).getOnlinetime() / (double) 3600)); - Message.send("DECIMAL_FORMAT", sender, format); + Message.send(format,sender); } }