Use toString() rather than cast potential Boolean, part 2. Fixes #682

This commit is contained in:
BuildTools 2019-02-05 13:54:06 -05:00
parent 3dc397921c
commit 2746fa76f1

View File

@ -680,7 +680,7 @@ public class Quest {
String message = found.getRewardName();
if (message != null) {
for (String key : datamap.keySet()) {
message = message.replace("%" + ((String) key) + "%", ((String) datamap.get(key)));
message = message.replace("%" + key + "%", datamap.get(key).toString());
}
player.sendMessage("- " + ChatColor.GOLD + message);
} else {