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)"); throw new ApplianceCommand.Error("acinform command needs a player (--playerName)");
if(anticheatName != null && !anticheatName.isBlank()) { if(anticheatName != null && !anticheatName.isBlank()) {
component.append( component
Component.newline() .append(Component.text(" ", NamedTextColor.GRAY))
.append(prefix) .append(Component.text("[", textColor))
.append(Component.text("[", textColor)) .append(Component.text(anticheatName, NamedTextColor.RED))
.append(Component.text("Anticheat", NamedTextColor.RED)) .append(Component.text("]: ", textColor));
.append(Component.text("] ", textColor))
.append(Component.text(anticheatName, NamedTextColor.WHITE))
.append(Component.text(":", textColor))
);
} }
component.append( component
Component.newline() .append(Component.text("Player ", textColor))
.append(prefix) .append(Component.text(playerName, NamedTextColor.WHITE))
.append(Component.text("Player ", textColor)) .append(Component.text(" "));
.append(Component.text(playerName, NamedTextColor.WHITE))
.append(Component.text(" "))
);
if(checkName == null || checkName.isBlank()) { if(checkName == null || checkName.isBlank()) {
component.append(Component.text("got detected by Anticheat", textColor)); component.append(Component.text("got detected by Anticheat", textColor));
@ -86,8 +79,7 @@ public class AcInform extends Appliance {
component.append( component.append(
Component.newline() Component.newline()
.append(prefix) .append(Component.text("", NamedTextColor.GRAY))
.append(Component.text("[", NamedTextColor.GRAY)) .append(Component.text("[", NamedTextColor.GRAY))
.append(Component.text("Report", NamedTextColor.GOLD)) .append(Component.text("Report", NamedTextColor.GOLD))
.append(Component.text("]", NamedTextColor.GRAY)) .append(Component.text("]", NamedTextColor.GRAY))
@ -115,7 +107,6 @@ public class AcInform extends Appliance {
.clickEvent(ClickEvent.suggestCommand(String.format("/tp %s", playerName))) .clickEvent(ClickEvent.suggestCommand(String.format("/tp %s", playerName)))
); );
component.appendNewline();
TextComponent finalMessage = component.build(); TextComponent finalMessage = component.build();
Bukkit.getOnlinePlayers().stream() Bukkit.getOnlinePlayers().stream()