geforkt von SteamWar/BungeeCore
Formatting
Dieser Commit ist enthalten in:
Ursprung
28f96c1708
Commit
896ea6b6d4
@ -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));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren