mirror of
https://github.com/Crazy-Crew/CrazyAuctions.git
synced 2025-01-24 22:01:46 +01:00
Fixed NPE if having prefix set to nothing.
This commit is contained in:
parent
c483d81f9a
commit
348cc6c94d
@ -28,11 +28,11 @@ public class Methods {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static String getPrefix() {
|
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) {
|
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) {
|
public static String removeColor(String msg) {
|
||||||
|
Loading…
Reference in New Issue
Block a user