stuff
This commit is contained in:
@ -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() + "")
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user