Workaround invalid custom objective string

This commit is contained in:
PikaMug 2023-10-30 22:21:51 -04:00
parent 10fc926395
commit 07c1ae8610

View File

@ -1645,7 +1645,7 @@ public class BukkitQuester implements Quester {
for (final Entry<String, Object> e : stage.getCustomObjectiveData()) {
if (e.getKey().equals(prompt.getKey())) {
if (message.contains(replacement)) {
message = message.replace(replacement, ((String) e.getValue()));
message = message.replace(replacement, String.valueOf(e.getValue()));
}
}
}