Beispiel #1
0
  @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()));
    }
  }
Beispiel #2
0
 @Override
 public String label() {
   return I18n.tr(SyStats.UPTIME);
 }