@Override public void perform(ArgumentList args, Asker asker) throws CommandArgumentException { String packet = args.getArgument(1); List<Player> players; try { players = args.getPlayerList(2, VariableUtils.getMe(asker)); } catch (ParserError ex) { asker.writeError(ex.getMessage()); return; } for (Player player : players) { player.getSession().write(packet); asker.write(I18n.tr(Commands.PACKET_SENT, player.getName())); } }
@Override public String label() { return I18n.tr(SyStats.UPTIME); }