1
mirror of https://github.com/Shiewk/SModeration.git synced 2026-04-28 05:54:16 +02:00

Config rework

This commit is contained in:
Shy
2025-08-22 11:00:28 +02:00
parent 2be16da939
commit 7e3139126c
7 changed files with 53 additions and 69 deletions
@@ -39,7 +39,7 @@ public final class MuteCommand implements CommandProvider {
}
private int muteWithoutReason(CommandContext<CommandSourceStack> context) throws CommandSyntaxException {
if (SModerationPaper.CONFIG.shouldForceReason()){
if (SModerationPaper.config().getBoolean("force-reason", false)){
CommandUtil.errorTranslatable("smod.command.mute.fail.forceReason");
}
UUID sender = CommandUtil.getSenderUUID(context.getSource());