mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 17:39:52 -05:00
1 parent
771e060781
commit
69c6041580
1 file changed
+4
-1
@@ -275,9 +275,12 @@ public class MsgUtil {
|
||||
|
||||
public static String getMessage(String loc, String... args) {
|
||||
String raw = messages.getString(loc);
|
||||
if (raw == null || raw.isEmpty()) {
|
||||
if (raw == null) {
|
||||
return "Invalid message: " + loc;
|
||||
}
|
||||
if (raw.isEmpty()) {
|
||||
return "";
|
||||
}
|
||||
if (args == null) {
|
||||
return raw;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user