From b66de271544853532798ad3c0124fcd4e5056957 Mon Sep 17 00:00:00 2001 From: Draycia Date: Tue, 17 Sep 2024 02:33:03 -0700 Subject: [PATCH] Remove usages of var in DML --- .../carbon/paper/listeners/DiscordMessageListener.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/paper/src/main/java/net/draycia/carbon/paper/listeners/DiscordMessageListener.java b/paper/src/main/java/net/draycia/carbon/paper/listeners/DiscordMessageListener.java index f8be98c4b..3b5f82eac 100644 --- a/paper/src/main/java/net/draycia/carbon/paper/listeners/DiscordMessageListener.java +++ b/paper/src/main/java/net/draycia/carbon/paper/listeners/DiscordMessageListener.java @@ -23,6 +23,7 @@ import java.util.HashMap; import java.util.Map; import net.draycia.carbon.api.CarbonChat; +import net.draycia.carbon.api.users.CarbonPlayer; import net.essentialsx.api.v2.events.discord.DiscordMessageEvent; import net.essentialsx.api.v2.events.discord.DiscordRelayEvent; import net.essentialsx.api.v2.services.discord.DiscordService; @@ -59,7 +60,7 @@ public void onDiscordMessage(final DiscordMessageEvent event) { return; } - final var result = this.carbonChat.userManager().user(event.getUUID()).join(); + final CarbonPlayer result = this.carbonChat.userManager().user(event.getUUID()).join(); var channel = result.selectedChannel(); @@ -67,7 +68,7 @@ public void onDiscordMessage(final DiscordMessageEvent event) { return; } - final var messageType = this.channelMessageTypes.get(channel.key()); + final MessageType messageType = this.channelMessageTypes.get(channel.key()); event.setType(messageType); }