Use non-Italic Naming

This commit is contained in:
Sn0wStorm
2013-07-04 02:59:21 +02:00
parent 3a790c29f1
commit a003d6ad23
3 changed files with 8 additions and 4 deletions
+1 -1
View File
@@ -89,7 +89,7 @@ public class BIngredients {
potion.setDurability(Brew.PotionColor.CYAN.getColorId(true)); potion.setDurability(Brew.PotionColor.CYAN.getColorId(true));
} }
potionMeta.setDisplayName(cookedName); potionMeta.setDisplayName(P.p.white() + cookedName);
// This effect stores the UID in its Duration // This effect stores the UID in its Duration
potionMeta.addCustomEffect((PotionEffectType.REGENERATION).createEffect((uid * 4), 0), true); potionMeta.addCustomEffect((PotionEffectType.REGENERATION).createEffect((uid * 4), 0), true);
potion.setItemMeta(potionMeta); potion.setItemMeta(potionMeta);
+3 -3
View File
@@ -199,7 +199,7 @@ public class Brew {
brew.currentRecipe = recipe; brew.currentRecipe = recipe;
P.p.log("destilled " + recipe.getName(5) + " has Quality: " + brew.quality + ", alc: " + brew.calcAlcohol()); 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 the potion should be further distillable
if (recipe.getDistillRuns() > 1 && brew.distillRuns <= 5) { if (recipe.getDistillRuns() > 1 && brew.distillRuns <= 5) {
@@ -208,7 +208,7 @@ public class Brew {
slotItem.setDurability(PotionColor.valueOf(recipe.getColor()).getColorId(false)); slotItem.setDurability(PotionColor.valueOf(recipe.getColor()).getColorId(false));
} }
} else { } else {
potionMeta.setDisplayName("Undefinierbares Destillat"); potionMeta.setDisplayName(P.p.white() + "Undefinierbares Destillat");
slotItem.setDurability(PotionColor.GREY.getColorId(brew.distillRuns <= 5)); slotItem.setDurability(PotionColor.GREY.getColorId(brew.distillRuns <= 5));
} }
@@ -260,7 +260,7 @@ public class Brew {
potionMeta.setLore(lore); 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.setDurability(PotionColor.valueOf(recipe.getColor()).getColorId(false));
item.setItemMeta(potionMeta); item.setItemMeta(potionMeta);
//} //}
+4
View File
@@ -315,6 +315,10 @@ public class P extends JavaPlugin {
return null; return null;
} }
public String white() {
return ChatColor.WHITE + "";
}
public class DrunkRunnable implements Runnable { public class DrunkRunnable implements Runnable {
public DrunkRunnable() { public DrunkRunnable() {