Skip to content

Commit

Permalink
Create StatsCommand.java
Browse files Browse the repository at this point in the history
  • Loading branch information
W1llDu authored Dec 7, 2021
1 parent 6ec1d85 commit 7c77b1c
Showing 1 changed file with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package io.github.w1ll_du.whitelister.command.commands;

import io.github.w1ll_du.whitelister.command.CommandContext;
import io.github.w1ll_du.whitelister.command.ICommand;
import io.github.w1ll_du.whitelister.Utils;
import java.util.List;

public class StatsCommand implements ICommand {
@Override
public void handle(CommandContext ctx) {
// [username] [statistic name]
String cmd;
ctx.getChannel().sendMessage(Utils.rconCommand(cmd)).queue();
}

@Override
public String getName() {
return "stats";
}

@Override
public List<String> getAliases() {
return List.of("statistics");
}
}

0 comments on commit 7c77b1c

Please sign in to comment.