From 4a49f6bf8bb408c14cdeba458c7edbefd46440e4 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Thu, 5 Aug 2021 08:43:03 +1000 Subject: [PATCH] SPIGOT-6692: Add sendSignChange overload with a hasGlowingText parameter By: Brokkonaut --- .../java/org/bukkit/craftbukkit/entity/CraftPlayer.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java index 55ba6a426e..09532a8374 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java @@ -572,11 +572,16 @@ public class CraftPlayer extends CraftHumanEntity implements Player { @Override public void sendSignChange(Location loc, String[] lines) { - sendSignChange(loc, lines, DyeColor.BLACK); + sendSignChange(loc, lines, DyeColor.BLACK); } @Override public void sendSignChange(Location loc, String[] lines, DyeColor dyeColor) { + sendSignChange(loc, lines, dyeColor, false); + } + + @Override + public void sendSignChange(Location loc, String[] lines, DyeColor dyeColor, boolean hasGlowingText) { if (getHandle().connection == null) { return; } @@ -594,6 +599,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player { IChatBaseComponent[] components = CraftSign.sanitizeLines(lines); TileEntitySign sign = new TileEntitySign(new BlockPosition(loc.getBlockX(), loc.getBlockY(), loc.getBlockZ()), Blocks.OAK_SIGN.getBlockData()); sign.setColor(EnumColor.fromColorIndex(dyeColor.getWoolData())); + sign.setHasGlowingText(hasGlowingText); for (int i = 0; i < components.length; i++) { sign.a(i, components[i]); }