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