From bcd9306951d9fdb1a66268e9c3506e9b6e8810a0 Mon Sep 17 00:00:00 2001 From: BuildTools Date: Sun, 27 Jan 2019 00:10:21 -0500 Subject: [PATCH] Additional cleanup for #655 --- .../quests/prompts/RewardsPrompt.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/main/java/me/blackvein/quests/prompts/RewardsPrompt.java b/src/main/java/me/blackvein/quests/prompts/RewardsPrompt.java index b82b8875c..c27283a25 100644 --- a/src/main/java/me/blackvein/quests/prompts/RewardsPrompt.java +++ b/src/main/java/me/blackvein/quests/prompts/RewardsPrompt.java @@ -299,7 +299,7 @@ public class RewardsPrompt extends FixedSetPrompt { itemRews.add((ItemStack) context.getSessionData("tempStack")); context.setSessionData(CK.REW_ITEMS, itemRews); } else { - LinkedList itemRews = new LinkedList(); + List itemRews = new LinkedList(); itemRews.add((ItemStack) context.getSessionData("tempStack")); context.setSessionData(CK.REW_ITEMS, itemRews); } @@ -357,7 +357,7 @@ public class RewardsPrompt extends FixedSetPrompt { public Prompt acceptInput(ConversationContext context, String input) { if (input.equalsIgnoreCase(Lang.get("cmdCancel")) == false && input.equalsIgnoreCase(Lang.get("cmdClear")) == false) { String[] args = input.split(Lang.get("charSemi")); - LinkedList commands = new LinkedList(); + List commands = new LinkedList(); for (String s : args) { if (s.startsWith("/")) { s = s.substring(1); @@ -383,7 +383,7 @@ public class RewardsPrompt extends FixedSetPrompt { public Prompt acceptInput(ConversationContext context, String input) { if (input.equalsIgnoreCase(Lang.get("cmdCancel")) == false && input.equalsIgnoreCase(Lang.get("cmdClear")) == false) { String[] args = input.split(" "); - LinkedList permissions = new LinkedList(); + List permissions = new LinkedList(); permissions.addAll(Arrays.asList(args)); context.setSessionData(CK.REW_PERMISSION, permissions); } else if (input.equalsIgnoreCase(Lang.get("cmdClear"))) { @@ -498,7 +498,7 @@ public class RewardsPrompt extends FixedSetPrompt { public Prompt acceptInput(ConversationContext context, String input) { if (input.equalsIgnoreCase(Lang.get("cmdCancel")) == false) { String[] args = input.split(" "); - LinkedList skills = new LinkedList(); + List skills = new LinkedList(); for (String s : args) { if (Quests.getMcMMOSkill(s) != null) { if (skills.contains(s) == false) { @@ -531,7 +531,7 @@ public class RewardsPrompt extends FixedSetPrompt { public Prompt acceptInput(ConversationContext context, String input) { if (input.equalsIgnoreCase(Lang.get("cmdCancel")) == false) { String[] args = input.split(" "); - LinkedList amounts = new LinkedList(); + List amounts = new LinkedList(); for (String s : args) { try { amounts.add(Integer.parseInt(s)); @@ -637,7 +637,7 @@ public class RewardsPrompt extends FixedSetPrompt { @Override public String getPromptText(ConversationContext cc) { String text = ChatColor.DARK_PURPLE + Lang.get("heroesClassesTitle") + "\n"; - LinkedList list = new LinkedList(); + List list = new LinkedList(); for (HeroClass hc : plugin.getDependencies().getHeroes().getClassManager().getClasses()) { list.add(hc.getName()); } @@ -658,7 +658,7 @@ public class RewardsPrompt extends FixedSetPrompt { public Prompt acceptInput(ConversationContext cc, String input) { if (input.equalsIgnoreCase(Lang.get("cmdCancel")) == false) { String[] arr = input.split(" "); - LinkedList classes = new LinkedList(); + List classes = new LinkedList(); for (String s : arr) { HeroClass hc = plugin.getDependencies().getHeroes().getClassManager().getClass(s); if (hc == null) { @@ -691,7 +691,7 @@ public class RewardsPrompt extends FixedSetPrompt { public Prompt acceptInput(ConversationContext cc, String input) { if (input.equalsIgnoreCase(Lang.get("cmdCancel")) == false) { String[] arr = input.split(" "); - LinkedList amounts = new LinkedList(); + List amounts = new LinkedList(); for (String s : arr) { try { double d = Double.parseDouble(s); @@ -727,7 +727,7 @@ public class RewardsPrompt extends FixedSetPrompt { public Prompt acceptInput(ConversationContext cc, String input) { if (input.equalsIgnoreCase(Lang.get("cmdCancel")) == false && input.equalsIgnoreCase(Lang.get("cmdClear")) == false) { String[] arr = input.split(" "); - LinkedList loots = new LinkedList(); + List loots = new LinkedList(); for (String s : arr) { if (PhatLootsAPI.getPhatLoot(s) == null) { String text = Lang.get("rewPhatLootsInvalid");