mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-23 19:15:49 +01:00
Use toString() rather than cast potential Boolean, part 2. Fixes #682
This commit is contained in:
parent
3dc397921c
commit
2746fa76f1
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user