mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-22 18:45:27 +01:00
Show item display names correctly
This commit is contained in:
parent
1e648acd17
commit
48e2cd647c
@ -104,7 +104,7 @@ public class ItemUtil implements ColorUtil {
|
|||||||
Enchantment e = Quests.getEnchantment(enchs[0]);
|
Enchantment e = Quests.getEnchantment(enchs[0]);
|
||||||
meta.addEnchant(e, Integer.parseInt(enchs[1]), true);
|
meta.addEnchant(e, Integer.parseInt(enchs[1]), true);
|
||||||
} else if (arg.startsWith("displayname-")) {
|
} else if (arg.startsWith("displayname-")) {
|
||||||
meta.setDisplayName(arg.substring(5));
|
meta.setDisplayName(arg.substring(12));
|
||||||
} else if (arg.startsWith("lore-")) {
|
} else if (arg.startsWith("lore-")) {
|
||||||
lore.add(arg.substring(5));
|
lore.add(arg.substring(5));
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user