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;