1
mirror of https://github.com/Shiewk/SModeration.git synced 2026-04-29 06:34:17 +02:00

Add default reason to config

This commit is contained in:
Shy
2026-04-12 15:02:41 +02:00
parent ea54f83909
commit 24da79642a
5 changed files with 7 additions and 5 deletions
@@ -57,7 +57,7 @@ public final class KickCommand implements CommandProvider {
}
UUID sender = CommandUtil.getSenderUUID(context.getSource());
Player target = CommandUtil.getPlayerSingle(context, "player");
executeKick(punishmentManager, sender, target, Punishment.DEFAULT_REASON);
executeKick(punishmentManager, sender, target, SModerationPaper.config().getString("default-reason", "No reason provided."));
return Command.SINGLE_SUCCESS;
}