forked from chipmunkmc/chipmunkbot
among
This commit is contained in:
parent
ae837c897c
commit
25d983c71c
2 changed files with 3 additions and 2 deletions
|
@ -25,6 +25,7 @@ public class Configuration {
|
|||
|
||||
public static class Commands {
|
||||
public String prefix = "default.";
|
||||
public String cspyPrefix = "default.";
|
||||
}
|
||||
|
||||
public static class Core {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue