public String getBanReason() { if (!getPlayerConfig().contains("banreason")) { for (Ban.User b : getPlayer().getBanData().bans().get()) { return b.getReason().getContent(); } return ""; } save(); return getPlayerConfig().getString("banreason"); }
public Long getBanTime() { if (!getPlayerConfig().contains("bantime")) { for (Ban.User b : getPlayer().getBanData().bans().get()) { if (b.getExpirationDate().isPresent()) { return b.getExpirationDate().get().getTime(); } break; } save(); return 0L; } save(); return getPlayerConfig().getLong("bantime"); }