Show command rewards in quest complete list

This commit is contained in:
PikaMug 2019-06-12 01:44:04 -04:00
parent 482cd43c23
commit e2a37fbb4c
3 changed files with 7 additions and 3 deletions

View File

@ -634,6 +634,12 @@ public class Quest {
player.sendMessage("- " + ChatColor.DARK_GREEN + tot + ChatColor.DARK_PURPLE + " " + Lang.get(player, "experience"));
none = null;
}
if (rews.getCommands().isEmpty() == false) {
for (String s : rews.getCommands()) {
player.sendMessage("- " + ChatColor.DARK_GREEN + rews.getCommands().get(rews.getCommands().indexOf(s)));
}
none = null;
}
if (rews.getMcmmoSkills().isEmpty() == false) {
for (String s : rews.getMcmmoSkills()) {
player.sendMessage("- " + ChatColor.DARK_GREEN + rews.getMcmmoAmounts().get(rews.getMcmmoSkills().indexOf(s)) + " " + ChatColor.DARK_PURPLE + s + " " + Lang.get(player, "experience"));

View File

@ -26,7 +26,6 @@ import me.blackvein.quests.util.Lang;
public class OptionsPrompt extends FixedSetPrompt {
@SuppressWarnings("unused")
private final Quests plugin;
private final QuestFactory factory;
private String tempKey;

View File

@ -350,7 +350,7 @@ public class RewardsPrompt extends FixedSetPrompt {
String lang1 = Lang.get("rewCommandPrompt");
lang1 = lang1.replaceAll("<comma>", ChatColor.BOLD + "" + ChatColor.RED + "comma" + ChatColor.RESET + ChatColor.YELLOW);
String lang2 = Lang.get("rewCommandPromptHint");
return ChatColor.YELLOW + lang1 + "\n" + lang2;
return ChatColor.YELLOW + lang1 + "\n" + ChatColor.GOLD + lang2;
}
@Override
@ -393,7 +393,6 @@ public class RewardsPrompt extends FixedSetPrompt {
}
}
// mcMMO
private class mcMMOListPrompt extends FixedSetPrompt {
public mcMMOListPrompt() {