added error message for missing player name AcInform

This commit is contained in:
Lars Neuhaus 2024-11-06 10:29:20 +01:00
parent 0ea2d4958b
commit 0a7052b6f5

View File

@ -42,7 +42,7 @@ public class AcInform extends Appliance {
Component prefix = Component.text("# ", NamedTextColor.DARK_RED);
NamedTextColor textColor = NamedTextColor.GRAY;
if(playerName == null || playerName.isBlank()) return;
if(playerName == null || playerName.isBlank()) throw new ApplianceCommand.Error("acinform command needs a player (--playerName)");
if(anticheatName != null && !anticheatName.isBlank()) {
component.append(