From 116a9c11a23c69c1ed2e9befc5a35c0dd5f30b50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elias=20M=C3=BCller?= Date: Thu, 26 Dec 2024 01:56:40 +0100 Subject: [PATCH] updated ac inform design --- .../spawn/appliances/acInform/AcInform.java | 29 +++++++------------ 1 file changed, 10 insertions(+), 19 deletions(-) diff --git a/src/main/java/eu/mhsl/craftattack/spawn/appliances/acInform/AcInform.java b/src/main/java/eu/mhsl/craftattack/spawn/appliances/acInform/AcInform.java index e2bc871..50fa6bd 100644 --- a/src/main/java/eu/mhsl/craftattack/spawn/appliances/acInform/AcInform.java +++ b/src/main/java/eu/mhsl/craftattack/spawn/appliances/acInform/AcInform.java @@ -46,24 +46,17 @@ public class AcInform extends Appliance { throw new ApplianceCommand.Error("acinform command needs a player (--playerName)"); if(anticheatName != null && !anticheatName.isBlank()) { - component.append( - Component.newline() - .append(prefix) - .append(Component.text("[", textColor)) - .append(Component.text("Anticheat", NamedTextColor.RED)) - .append(Component.text("] ", textColor)) - .append(Component.text(anticheatName, NamedTextColor.WHITE)) - .append(Component.text(":", textColor)) - ); + component + .append(Component.text("⊤ ", NamedTextColor.GRAY)) + .append(Component.text("[", textColor)) + .append(Component.text(anticheatName, NamedTextColor.RED)) + .append(Component.text("]: ", textColor)); } - component.append( - Component.newline() - .append(prefix) - .append(Component.text("Player ", textColor)) - .append(Component.text(playerName, NamedTextColor.WHITE)) - .append(Component.text(" ")) - ); + component + .append(Component.text("Player ", textColor)) + .append(Component.text(playerName, NamedTextColor.WHITE)) + .append(Component.text(" ")); if(checkName == null || checkName.isBlank()) { component.append(Component.text("got detected by Anticheat", textColor)); @@ -86,8 +79,7 @@ public class AcInform extends Appliance { component.append( Component.newline() - .append(prefix) - + .append(Component.text("⊥ ", NamedTextColor.GRAY)) .append(Component.text("[", NamedTextColor.GRAY)) .append(Component.text("Report", NamedTextColor.GOLD)) .append(Component.text("]", NamedTextColor.GRAY)) @@ -115,7 +107,6 @@ public class AcInform extends Appliance { .clickEvent(ClickEvent.suggestCommand(String.format("/tp %s", playerName))) ); - component.appendNewline(); TextComponent finalMessage = component.build(); Bukkit.getOnlinePlayers().stream()