From a003d6ad236a7a0571fb41c02644ff134a553616 Mon Sep 17 00:00:00 2001 From: Sn0wStorm Date: Thu, 4 Jul 2013 02:59:21 +0200 Subject: [PATCH] Use non-Italic Naming --- src/com/dre/brewery/BIngredients.java | 2 +- src/com/dre/brewery/Brew.java | 6 +++--- src/com/dre/brewery/P.java | 4 ++++ 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/com/dre/brewery/BIngredients.java b/src/com/dre/brewery/BIngredients.java index 2f7c721..9e5c4bb 100644 --- a/src/com/dre/brewery/BIngredients.java +++ b/src/com/dre/brewery/BIngredients.java @@ -89,7 +89,7 @@ public class BIngredients { potion.setDurability(Brew.PotionColor.CYAN.getColorId(true)); } - potionMeta.setDisplayName(cookedName); + potionMeta.setDisplayName(P.p.white() + cookedName); // This effect stores the UID in its Duration potionMeta.addCustomEffect((PotionEffectType.REGENERATION).createEffect((uid * 4), 0), true); potion.setItemMeta(potionMeta); diff --git a/src/com/dre/brewery/Brew.java b/src/com/dre/brewery/Brew.java index af4974e..3eba269 100644 --- a/src/com/dre/brewery/Brew.java +++ b/src/com/dre/brewery/Brew.java @@ -199,7 +199,7 @@ public class Brew { brew.currentRecipe = recipe; P.p.log("destilled " + recipe.getName(5) + " has Quality: " + brew.quality + ", alc: " + brew.calcAlcohol()); - potionMeta.setDisplayName(recipe.getName(brew.quality)); + potionMeta.setDisplayName(P.p.white() + recipe.getName(brew.quality)); // if the potion should be further distillable if (recipe.getDistillRuns() > 1 && brew.distillRuns <= 5) { @@ -208,7 +208,7 @@ public class Brew { slotItem.setDurability(PotionColor.valueOf(recipe.getColor()).getColorId(false)); } } else { - potionMeta.setDisplayName("Undefinierbares Destillat"); + potionMeta.setDisplayName(P.p.white() + "Undefinierbares Destillat"); slotItem.setDurability(PotionColor.GREY.getColorId(brew.distillRuns <= 5)); } @@ -260,7 +260,7 @@ public class Brew { potionMeta.setLore(lore); } - potionMeta.setDisplayName(recipe.getName(brew.quality)); + potionMeta.setDisplayName(P.p.white() + recipe.getName(brew.quality)); item.setDurability(PotionColor.valueOf(recipe.getColor()).getColorId(false)); item.setItemMeta(potionMeta); //} diff --git a/src/com/dre/brewery/P.java b/src/com/dre/brewery/P.java index 1dffd29..5852e21 100644 --- a/src/com/dre/brewery/P.java +++ b/src/com/dre/brewery/P.java @@ -315,6 +315,10 @@ public class P extends JavaPlugin { return null; } + public String white() { + return ChatColor.WHITE + ""; + } + public class DrunkRunnable implements Runnable { public DrunkRunnable() {