From 42dea17ff02c9501714be50afc6bb5428f40b481 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Fri, 28 Jun 2024 09:27:16 +0200 Subject: [PATCH] Fix ranks and ticketlog Signed-off-by: Lixfel --- .../velocitycore/discord/listeners/DiscordTicketHandler.java | 4 ++-- src/de/steamwar/velocitycore/discord/util/DiscordRanks.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/de/steamwar/velocitycore/discord/listeners/DiscordTicketHandler.java b/src/de/steamwar/velocitycore/discord/listeners/DiscordTicketHandler.java index 056fe6f..8956683 100644 --- a/src/de/steamwar/velocitycore/discord/listeners/DiscordTicketHandler.java +++ b/src/de/steamwar/velocitycore/discord/listeners/DiscordTicketHandler.java @@ -91,11 +91,11 @@ public class DiscordTicketHandler extends ListenerAdapter { .append(" ") .append("**").append(message.getAuthor().getName()).append("**: ") .append(message.getContentRaw()) - .append("\n"); + .append("\n\n"); if(!message.getAttachments().isEmpty()) { message.getAttachments().forEach(attachment -> stringBuilder.append(attachment.getUrl())); - stringBuilder.append("\n"); + stringBuilder.append("\n\n"); } return stringBuilder; diff --git a/src/de/steamwar/velocitycore/discord/util/DiscordRanks.java b/src/de/steamwar/velocitycore/discord/util/DiscordRanks.java index 0a9c769..3a392bd 100644 --- a/src/de/steamwar/velocitycore/discord/util/DiscordRanks.java +++ b/src/de/steamwar/velocitycore/discord/util/DiscordRanks.java @@ -33,7 +33,7 @@ import java.util.stream.Collectors; @UtilityClass public class DiscordRanks { - private final Map prefixToPermName = UserPerm.prefixes.entrySet().stream().collect(Collectors.toMap(Map.Entry::getValue, entry -> entry.getKey().name())); + private final Map prefixToPermName = UserPerm.prefixes.entrySet().stream().collect(Collectors.toMap(Map.Entry::getValue, entry -> entry.getKey().name().toLowerCase())); public void update(SteamwarUser user) { if (user.getDiscordId() == null)