mirror of
https://github.com/PikaMug/Quests.git
synced 2024-09-09 14:08:02 +02:00
Show command rewards in quest complete list
This commit is contained in:
parent
482cd43c23
commit
e2a37fbb4c
@ -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"));
|
||||
|
@ -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;
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user