<BUG>List<WarnData> warnData = handler.getWarnings(user);</BUG><CONTEXT>User user = optUser.get();Optional<String> optIndex = args.nextIfPresent();if (!optIndex.isPresent()) {throw args.createError(NucleusPlugin.getNucleus().getMessageProvider().getTextMessageWithFormat("args.warning.noindex", user.getName()));}<extra_id_0>int index;try {index = Integer.parseInt(optIndex.get()) - 1;</CONTEXT>
List<WarnData> warnData = handler.getWarningsInternal(user);