From 25d983c71c85aab53dba2a0ba10e3cfd431f2e70 Mon Sep 17 00:00:00 2001 From: Chipmunk <65827213+chipmunkmc@users.noreply.github.com> Date: Tue, 23 May 2023 03:12:32 +0700 Subject: [PATCH] among --- src/main/java/land/chipmunk/chipmunkbot/Configuration.java | 1 + .../chipmunk/chipmunkbot/plugins/PlayerCommandHandler.java | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/land/chipmunk/chipmunkbot/Configuration.java b/src/main/java/land/chipmunk/chipmunkbot/Configuration.java index 52f37ed..beef4d9 100644 --- a/src/main/java/land/chipmunk/chipmunkbot/Configuration.java +++ b/src/main/java/land/chipmunk/chipmunkbot/Configuration.java @@ -25,6 +25,7 @@ public class Configuration { public static class Commands { public String prefix = "default."; + public String cspyPrefix = "default."; } public static class Core { diff --git a/src/main/java/land/chipmunk/chipmunkbot/plugins/PlayerCommandHandler.java b/src/main/java/land/chipmunk/chipmunkbot/plugins/PlayerCommandHandler.java index 0370f3b..8aae201 100644 --- a/src/main/java/land/chipmunk/chipmunkbot/plugins/PlayerCommandHandler.java +++ b/src/main/java/land/chipmunk/chipmunkbot/plugins/PlayerCommandHandler.java @@ -1,7 +1,7 @@ package land.chipmunk.chipmunkbot.plugins; import land.chipmunk.chipmunkbot.ChipmunkBot; -import land.chipmunk.chipmunkbot.Options; +import land.chipmunk.chipmunkbot.Configuration; import land.chipmunk.chipmunkbot.command.CommandSource; import land.chipmunk.chipmunkbot.command.PlayerCommandSource; import land.chipmunk.chipmunkbot.command.ComponentMessage; @@ -23,7 +23,7 @@ public class PlayerCommandHandler { @Getter @Setter private String prefix; @Getter @Setter private String cspyPrefix; - public PlayerCommandHandler (ChipmunkBot client, Options options) { + public PlayerCommandHandler (ChipmunkBot client, Configuration.Bot options) { this.client = client; this.prefix = options.commands.prefix; this.cspyPrefix = options.commands.cspyPrefix != null ? options.commands.cspyPrefix : this.prefix;