added error message for missing player name AcInform
This commit is contained in:
parent
0ea2d4958b
commit
0a7052b6f5
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user