updated ac inform design

This commit is contained in:
Elias Müller 2024-12-26 01:56:40 +01:00
parent 3f29ceb08f
commit 116a9c11a2

View File

@ -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()