geforkt von SteamWar/BungeeCore
Formatting
Dieser Commit ist enthalten in:
Ursprung
9b487e929c
Commit
28f96c1708
@ -34,10 +34,13 @@ 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;
|
ProxiedPlayer player = (ProxiedPlayer) sender;
|
||||||
SteamwarUser user = SteamwarUser.get(player);
|
SteamwarUser user = SteamwarUser.get(player);
|
||||||
Message.send("WHOIS_HOURS_PLAYED", player, new DecimalFormat("###.##").format(user.getOnlinetime() / (double) 3600));
|
Message.send("HOURS_PLAYED", player, new DecimalFormat("###.##").format(user.getOnlinetime() / (double) 3600));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -557,4 +557,7 @@ GDPR_STATUS_WORLD=§7Packe Bauwelten...
|
|||||||
GDPR_STATUS_INVENTORIES=§7Suche und packe Inventare...
|
GDPR_STATUS_INVENTORIES=§7Suche und packe Inventare...
|
||||||
GDPR_STATUS_DATABASE=§7Packe Datenbankinhalte...
|
GDPR_STATUS_DATABASE=§7Packe Datenbankinhalte...
|
||||||
GDPR_STATUS_LOGS=§7Suche und packe logs...
|
GDPR_STATUS_LOGS=§7Suche und packe logs...
|
||||||
GDPR_STATUS_FINISHED=§7Packen abgeschlossen
|
GDPR_STATUS_FINISHED=§7Packen abgeschlossen
|
||||||
|
|
||||||
|
#Playtime Command
|
||||||
|
HOURS_PLAYED=§7Deine Spielzeit beträgt§8: §e{0}h
|
In neuem Issue referenzieren
Einen Benutzer sperren