Use getter/setters for config so people can override it to bridge configs

This commit is contained in:
Aikar
2018-01-22 23:49:14 -05:00
parent bdfed57936
commit 65ca960882
2 changed files with 14 additions and 2 deletions
@@ -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;
}