SteamWar/BungeeCore
Archiviert
13
2

Formatting
Einige Prüfungen sind fehlgeschlagen
SteamWarCI Build failed

Dieser Commit ist enthalten in:
zOnlyKroks 2021-12-24 17:35:17 +01:00
Ursprung 28f96c1708
Commit 896ea6b6d4

Datei anzeigen

@ -34,13 +34,10 @@ public class PlaytimeCommand extends BasicCommand{
@Override
public void execute(CommandSender sender, String[] strings) {
if(!(sender instanceof ProxiedPlayer))
return;
ProxiedPlayer player = (ProxiedPlayer) sender;
SteamwarUser user = SteamwarUser.get(player);
Message.send("HOURS_PLAYED", player, new DecimalFormat("###.##").format(user.getOnlinetime() / (double) 3600));
Message.send("HOURS_PLAYED", sender, new DecimalFormat("###.##").format((SteamwarUser.get((ProxiedPlayer) sender).getOnlinetime() / (double) 3600));
}
}