antigrief false positives tweaks

This commit is contained in:
2025-09-27 07:30:23 +02:00
parent fdf3b5c73f
commit 16d7347fd0
4 changed files with 29 additions and 11 deletions

View File

@@ -19,6 +19,7 @@ class KickCommand extends ApplianceCommand<Kick> {
@Override
protected void execute(@NotNull CommandSender sender, @NotNull Command command, @NotNull String label, @NotNull String[] args) throws Exception {
if(args.length < 1) throw new Error("Es muss ein Spielername angegeben werden!");
this.getAppliance().kick(
args[0],
Arrays.stream(args).skip(1).collect(Collectors.joining(" "))