mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-09 12:19:56 +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();
|
String message = found.getRewardName();
|
||||||
if (message != null) {
|
if (message != null) {
|
||||||
for (String key : datamap.keySet()) {
|
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);
|
player.sendMessage("- " + ChatColor.GOLD + message);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user