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 @Override
public void execute(CommandSender sender, String[] strings) { public void execute(CommandSender sender, String[] strings) {
if(!(sender instanceof ProxiedPlayer)) if(!(sender instanceof ProxiedPlayer))
return; return;
ProxiedPlayer player = (ProxiedPlayer) sender; Message.send("HOURS_PLAYED", sender, new DecimalFormat("###.##").format((SteamwarUser.get((ProxiedPlayer) sender).getOnlinetime() / (double) 3600));
SteamwarUser user = SteamwarUser.get(player);
Message.send("HOURS_PLAYED", player, new DecimalFormat("###.##").format(user.getOnlinetime() / (double) 3600));
} }
} }