mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-23 02:55:40 +01:00
Merge pull request #232 from elBukkit/CustomModuleFixes
Fix parameterization of custom rewards messages
This commit is contained in:
commit
232b88aaf7
@ -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?");
|
||||
|
Loading…
Reference in New Issue
Block a user