23 lines
664 B
Java
23 lines
664 B
Java
package cc.fascinated.vote.command;
|
|
|
|
import cc.fascinated.account.Account;
|
|
import cc.fascinated.command.Command;
|
|
import cc.fascinated.config.Lang;
|
|
|
|
public class VoteStatsCommand extends Command {
|
|
|
|
public VoteStatsCommand() {
|
|
super("votestats");
|
|
}
|
|
|
|
@Override
|
|
public void execute(Account account, String[] args) {
|
|
for (String line : Lang.VOTE_STATS_COMMAND.getAsStringList()) {
|
|
account.sendMessage(line
|
|
.replace("%total-votes%", account.getVoteProfile().getTotalVotes() + "")
|
|
.replace("%vote-tokens%", account.getVoteProfile().getVoteTokens() + "")
|
|
);
|
|
}
|
|
}
|
|
}
|