Fix parameterization of custom rewards messages

This commit is contained in:
Nathan Wolf 2015-11-18 10:37:36 -08:00
parent 4fa7bb4594
commit ed0440092f

View File

@ -510,7 +510,7 @@ public class Quest {
for (String key : datamap.keySet()) {
message = message.replaceAll("%" + ((String) key) + "%", ((String) datamap.get(key)));
}
player.sendMessage("- " + ChatColor.GOLD + found.getRewardName());
player.sendMessage("- " + ChatColor.GOLD + message);
found.giveReward(player, customRewards.get(s));
} else {
plugin.getLogger().warning("[Quests] Quester \"" + player.getName() + "\" completed the Quest \"" + name + "\", but the Custom Reward \"" + s + "\" could not be found. Does it still exist?");