mirror of
https://github.com/aikar/commands.git
synced 2026-06-15 04:10:36 +00:00
Use getter/setters for config so people can override it to bridge configs
This commit is contained in:
@@ -1,5 +1,17 @@
|
||||
package co.aikar.commands;
|
||||
|
||||
public class JDACommandConfig {
|
||||
String startsWith = "!";
|
||||
protected String startsWith = "!";
|
||||
|
||||
public JDACommandConfig() {
|
||||
|
||||
}
|
||||
|
||||
public String getStartsWith() {
|
||||
return startsWith;
|
||||
}
|
||||
|
||||
public void setStartsWith(String startsWith) {
|
||||
this.startsWith = startsWith;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -171,7 +171,7 @@ public class JDACommandManager extends CommandManager<
|
||||
}
|
||||
}
|
||||
|
||||
if (!msg.startsWith(config.startsWith)) {
|
||||
if (!msg.startsWith(config.getStartsWith())) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user