mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 11:55:38 +01:00
Don't append color codes to component lore
- Color codes are defined thru the file. Adding these here will clash with any other codes you already use - Remove prefix from component GUI
This commit is contained in:
parent
8b8ac76852
commit
bbee330f4f
@ -254,11 +254,7 @@ public class ComponentPresetManager {
|
|||||||
Template.of("prefix", TranslatableCaption.of("core.prefix").getComponent(player))
|
Template.of("prefix", TranslatableCaption.of("core.prefix").getComponent(player))
|
||||||
)));
|
)));
|
||||||
lore.removeIf(String::isEmpty);
|
lore.removeIf(String::isEmpty);
|
||||||
if (!lore.isEmpty()) {
|
|
||||||
lore.add("<gold>");
|
|
||||||
}
|
|
||||||
lore.addAll(preset.getDescription());
|
lore.addAll(preset.getDescription());
|
||||||
lore.add("</gold>");
|
|
||||||
plotInventory.setItem(
|
plotInventory.setItem(
|
||||||
i,
|
i,
|
||||||
new PlotItemStack(
|
new PlotItemStack(
|
||||||
|
@ -456,7 +456,7 @@
|
|||||||
"preset.preset_cannot_afford": "<prefix><red>You cannot afford that preset.</red>",
|
"preset.preset_cannot_afford": "<prefix><red>You cannot afford that preset.</red>",
|
||||||
"preset.preset_invalid": "<prefix><red>Could not generate a pattern from that preset.</red>",
|
"preset.preset_invalid": "<prefix><red>Could not generate a pattern from that preset.</red>",
|
||||||
"preset.preset_lore_cost": "<prefix><gray>Cost: </gray><gold><cost></gold>",
|
"preset.preset_lore_cost": "<prefix><gray>Cost: </gray><gold><cost></gold>",
|
||||||
"preset.preset_lore_component": "<prefix><gray>Component: </gray><gold><component></gold>",
|
"preset.preset_lore_component": "<gray>Component: </gray><gold><component></gold>",
|
||||||
"generic.generic_other": "<gray>other</gray>",
|
"generic.generic_other": "<gray>other</gray>",
|
||||||
"generic.generic_merged": "<gray>merged</gray>",
|
"generic.generic_merged": "<gray>merged</gray>",
|
||||||
"generic.generic_unowned": "<gray>unowned</gray>",
|
"generic.generic_unowned": "<gray>unowned</gray>",
|
||||||
|
Loading…
Reference in New Issue
Block a user