From 7c77b1cc101840e3492eae4666f094b9fc35631b Mon Sep 17 00:00:00 2001 From: William Du <70287641+W1ll-Du@users.noreply.github.com> Date: Tue, 7 Dec 2021 10:16:35 -0500 Subject: [PATCH] Create StatsCommand.java --- .../command/commands/StatsCommand.java | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 app/src/main/java/io/github/w1ll_du/whitelister/command/commands/StatsCommand.java diff --git a/app/src/main/java/io/github/w1ll_du/whitelister/command/commands/StatsCommand.java b/app/src/main/java/io/github/w1ll_du/whitelister/command/commands/StatsCommand.java new file mode 100644 index 0000000..8445429 --- /dev/null +++ b/app/src/main/java/io/github/w1ll_du/whitelister/command/commands/StatsCommand.java @@ -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 getAliases() { + return List.of("statistics"); + } +}