stuff
This commit is contained in:
@ -1,6 +1,8 @@
|
||||
package cc.fascinated.vote;
|
||||
|
||||
import cc.fascinated.account.Account;
|
||||
import cc.fascinated.bot.DiscordBot;
|
||||
import cc.fascinated.bot.DiscordChannel;
|
||||
import cc.fascinated.command.CommandManager;
|
||||
import cc.fascinated.config.Lang;
|
||||
import cc.fascinated.playercolor.PlayerColorProfile;
|
||||
@ -8,6 +10,9 @@ import cc.fascinated.utils.Manager;
|
||||
import cc.fascinated.utils.MessageUtils;
|
||||
import cc.fascinated.vote.command.VoteStatsCommand;
|
||||
import com.vexsoftware.votifier.model.VotifierEvent;
|
||||
import net.dv8tion.jda.api.EmbedBuilder;
|
||||
|
||||
import java.awt.*;
|
||||
|
||||
public class VoteManager extends Manager {
|
||||
|
||||
@ -28,5 +33,12 @@ public class VoteManager extends Manager {
|
||||
account.sendMessage(Lang.VOTE_VOTED.getAsString()
|
||||
.replace("%votes%", voteProfile.getTotalVotes() + "")
|
||||
);
|
||||
|
||||
DiscordBot.sendEmbed(DiscordChannel.VOTE_LOGS, new EmbedBuilder()
|
||||
.setTitle("Player Voted")
|
||||
.setColor(Color.GREEN)
|
||||
.addField("Player", account.getPlayer().getName(), true)
|
||||
.addField("Votes", voteProfile.getTotalVotes() + "", true)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user