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))
|
||||
return;
|
||||
|
||||
NumberFormat format = NumberFormat.getNumberInstance(Locale.GERMAN);
|
||||
format.setMaximumFractionDigits(2);
|
||||
format.format((SteamwarUser.get((ProxiedPlayer) sender).getOnlinetime() / (double) 3600));
|
||||
String s = Message.parse("TIME_FORMAT", sender);
|
||||
String format = new DecimalFormat(s).format((SteamwarUser.get((ProxiedPlayer) sender).getOnlinetime() / (double) 3600));
|
||||
|
||||
Message.send("HOURS_PLAYED", sender, format);
|
||||
}
|
||||
|
@ -560,4 +560,7 @@ GDPR_STATUS_LOGS=§7Suche und packe logs...
|
||||
GDPR_STATUS_FINISHED=§7Packen abgeschlossen
|
||||
|
||||
#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