mirror of
https://github.com/exituser/Brewery.git
synced 2026-09-17 07:49:03 +00:00
Use non-Italic Naming
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
//}
|
||||
|
||||
@@ -315,6 +315,10 @@ public class P extends JavaPlugin {
|
||||
return null;
|
||||
}
|
||||
|
||||
public String white() {
|
||||
return ChatColor.WHITE + "";
|
||||
}
|
||||
|
||||
public class DrunkRunnable implements Runnable {
|
||||
|
||||
public DrunkRunnable() {
|
||||
|
||||
Reference in New Issue
Block a user