From 16248a9e3b905ba7317d961454d8c1dc9baa56dc Mon Sep 17 00:00:00 2001 From: Vlammar <36545324+Vlammar@users.noreply.github.com> Date: Wed, 26 Aug 2020 00:08:05 +0200 Subject: [PATCH] Update ListOtherCommand.java --- .../commands/maptool/ListOtherCommand.java | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/main/java/fr/moribus/imageonmap/commands/maptool/ListOtherCommand.java b/src/main/java/fr/moribus/imageonmap/commands/maptool/ListOtherCommand.java index 292c1ea..89540e4 100644 --- a/src/main/java/fr/moribus/imageonmap/commands/maptool/ListOtherCommand.java +++ b/src/main/java/fr/moribus/imageonmap/commands/maptool/ListOtherCommand.java @@ -107,13 +107,11 @@ public class ListOtherCommand extends IoMCommand .then(map.getId()) .color(ChatColor.WHITE) .command(GetCommand.class, map.getId()) - .hover(new ItemStackBuilder(Material.MAP) - .title(ChatColor.GREEN + "" + ChatColor.BOLD + map.getName()) - .lore(ChatColor.GRAY + map.getId() + ", " + size) - .lore("") - .lore(I.t("{white}Click{gray} to get this map")) - .hideAttributes() - .item() + .hover(new RawText() + .then(map.getName()).style(ChatColor.BOLD, ChatColor.GREEN).then("\n") + .then(map.getId() + ", " + size).color(ChatColor.GRAY).then("\n\n") + .then(I.t("{white}Click{gray} to get this map")) + ); } @Override