Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
ItemSign: fix sign formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFaser committed Nov 14, 2023
1 parent 0f15ed7 commit 6bdaf72
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import net.flectone.chat.module.FModule;
import net.flectone.chat.util.ColorUtil;
import net.flectone.chat.util.ItemUtil;
import net.flectone.chat.util.MessageUtil;
import net.flectone.chat.util.Pair;
import org.bukkit.ChatColor;
import org.bukkit.Location;
Expand Down Expand Up @@ -109,7 +110,7 @@ public boolean sign(@NotNull Player player, @NotNull Location location, @NotNull
if (colorHex == null) return false;

signFormat = signFormat.replace("<dye>", colorHex);
signFormat = ColorUtil.translateHexToColor(signFormat);
signFormat = MessageUtil.formatAll(player, signFormat);

ItemStack itemToDrop = mainHandItem.clone();
itemToDrop.setAmount(1);
Expand Down

0 comments on commit 6bdaf72

Please sign in to comment.