From a0b5b065f09265e2e05cda7dccc6cdea1f6dbc39 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Wed, 26 Aug 2020 06:48:57 +1200 Subject: [PATCH] Fix a typo in %leggings%, fixes #505 --- .../disguise/utilities/parser/DisguiseParser.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/me/libraryaddict/disguise/utilities/parser/DisguiseParser.java b/src/main/java/me/libraryaddict/disguise/utilities/parser/DisguiseParser.java index 6b928686..2d4dacd6 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/parser/DisguiseParser.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/parser/DisguiseParser.java @@ -470,7 +470,7 @@ public class DisguiseParser { arg = replace(arg, "%armor%", equip == null ? null : equip.getArmorContents()); arg = replace(arg, "%helmet%", equip == null ? null : equip.getHelmet()); arg = replace(arg, "%chestplate%", equip == null ? null : equip.getChestplate()); - arg = replace(arg, "%leggings%%", equip == null ? null : equip.getLeggings()); + arg = replace(arg, "%leggings%", equip == null ? null : equip.getLeggings()); arg = replace(arg, "%boots%", equip == null ? null : equip.getBoots()); for (Player p : Bukkit.getOnlinePlayers()) { @@ -491,7 +491,7 @@ public class DisguiseParser { arg = replace(arg, "%" + name + "-armor%", pEquip == null ? null : pEquip.getArmorContents()); arg = replace(arg, "%" + name + "-helmet%", pEquip == null ? null : pEquip.getHelmet()); arg = replace(arg, "%" + name + "-chestplate%", pEquip == null ? null : pEquip.getChestplate()); - arg = replace(arg, "%" + name + "-leggings%%", pEquip == null ? null : pEquip.getLeggings()); + arg = replace(arg, "%" + name + "-leggings%", pEquip == null ? null : pEquip.getLeggings()); arg = replace(arg, "%" + name + "-boots%", pEquip == null ? null : pEquip.getBoots()); } @@ -503,7 +503,7 @@ public class DisguiseParser { arg = replace(arg, "%target-armor%", targetEquip == null ? null : targetEquip.getArmorContents()); arg = replace(arg, "%target-helmet%", targetEquip == null ? null : targetEquip.getHelmet()); arg = replace(arg, "%target-chestplate%", targetEquip == null ? null : targetEquip.getChestplate()); - arg = replace(arg, "%target-leggings%%", targetEquip == null ? null : targetEquip.getLeggings()); + arg = replace(arg, "%target-leggings%", targetEquip == null ? null : targetEquip.getLeggings()); arg = replace(arg, "%target-boots%", targetEquip == null ? null : targetEquip.getBoots()); args[i] = arg;