package io.minimum.minecraft.superbvote.commands;

import io.minimum.minecraft.superbvote.SuperbVote;
import io.minimum.minecraft.superbvote.configuration.message.VoteMessage;
import lombok.RequiredArgsConstructor;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;

@RequiredArgsConstructor
public class VoteCommand implements CommandExecutor {
    private final VoteMessage message;

    @Override
    public boolean onCommand(CommandSender sender, Command command, String s, String[] strings) {
        if (!(sender instanceof Player)) {
            sender.sendMessage(ChatColor.RED + "This command can only be used by players.");
            return true;
        }
        Bukkit.getScheduler().runTaskAsynchronously(SuperbVote.getPlugin(), () -> message.sendAsReminder((Player) sender));
        return true;
    }
}

@@ -95,16 +95,93 @@
 rbVote;%0A
+import io.minimum.minecraft.superbvote.configuration.message.MessageContext;%0A
 import i
@@ -1015,16 +1015,158 @@
 ) sender
+,%0A                new MessageContext(null, SuperbVote.getPlugin().getVoteStorage().getVotes(((Player) sender).getUniqueId()), (Player) sender)
 ));%0A    

Fix compile error