From d9681877509654f9730d8e0a3e92a138eb10eda4 Mon Sep 17 00:00:00 2001 From: YoyoNow Date: Fri, 1 Aug 2025 10:49:28 +0200 Subject: [PATCH] Fix VacationCommand --- .../src/de/steamwar/velocitycore/discord/VacationCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VelocityCore/src/de/steamwar/velocitycore/discord/VacationCommand.java b/VelocityCore/src/de/steamwar/velocitycore/discord/VacationCommand.java index 2c43356c..f4121468 100644 --- a/VelocityCore/src/de/steamwar/velocitycore/discord/VacationCommand.java +++ b/VelocityCore/src/de/steamwar/velocitycore/discord/VacationCommand.java @@ -180,7 +180,7 @@ public class VacationCommand extends ListenerAdapter { .filter(pair -> pair.right().startsWith(vacation)) .limit(25) .map(pair -> { - return new Command.Choice(pair.right(), pair.left().getLocation()); + return new Command.Choice(pair.right(), Long.parseLong(pair.left().getLocation())); }) .collect(Collectors.toList()); event.replyChoices(choices)