1
0
This commit is contained in:
Lee
2024-04-05 17:04:19 +01:00
parent 5e766a8eae
commit d7d2bb76ac
21 changed files with 295 additions and 73 deletions

View File

@ -0,0 +1,22 @@
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() + "")
);
}
}
}