Fixed NPE if having prefix set to nothing.

This commit is contained in:
BadBones69 2020-03-01 01:57:19 -05:00
parent c483d81f9a
commit 348cc6c94d

View File

@ -28,11 +28,11 @@ public class Methods {
}
public static String getPrefix() {
return color(Files.CONFIG.getFile().getString("Settings.Prefix"));
return color(Files.CONFIG.getFile().getString("Settings.Prefix", ""));
}
public static String getPrefix(String msg) {
return color(Files.CONFIG.getFile().getString("Settings.Prefix") + msg);
return color(Files.CONFIG.getFile().getString("Settings.Prefix", "") + msg);
}
public static String removeColor(String msg) {