Skip to content

Commit

Permalink
Add final keyword and remove var
Browse files Browse the repository at this point in the history
  • Loading branch information
Draycia committed Sep 17, 2024
1 parent b66de27 commit ca364be
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
import java.util.HashMap;
import java.util.Map;
import net.draycia.carbon.api.CarbonChat;
import net.draycia.carbon.api.channels.ChatChannel;
import net.draycia.carbon.api.users.CarbonPlayer;
import net.draycia.carbon.common.channels.ConfigChatChannel;
import net.essentialsx.api.v2.events.discord.DiscordMessageEvent;
import net.essentialsx.api.v2.events.discord.DiscordRelayEvent;
import net.essentialsx.api.v2.services.discord.DiscordService;
Expand Down Expand Up @@ -62,7 +64,7 @@ public void onDiscordMessage(final DiscordMessageEvent event) {

final CarbonPlayer result = this.carbonChat.userManager().user(event.getUUID()).join();

var channel = result.selectedChannel();
final ChatChannel channel = result.selectedChannel();

if (channel == null) {
return;
Expand Down

0 comments on commit ca364be

Please sign in to comment.