Add /lmutelist and /lmutehistory commands

- /lmutelist - shows all active mutes with remaining time
- /lmutehistory <player> - shows mute history for a player
- Added mute history tracking (mute-history.json)
- History includes: who muted, when, duration, reason, unmute info
- Permissions: lochat.mutelist, lochat.mutehistory
This commit is contained in:
loki5512344 2026-01-03 12:29:24 +01:00
parent c6175d9d61
commit d92799613e
7 changed files with 428 additions and 10 deletions

View file

@ -52,7 +52,7 @@ public class UnmuteCommand implements CommandExecutor, TabCompleter {
}
// Размучиваем оффлайн игрока
if (plugin.getMuteManager().unmute(offlinePlayer.getUniqueId())) {
if (plugin.getMuteManager().unmute(offlinePlayer.getUniqueId(), sender.getName())) {
sender.sendMessage("§aИгрок §e" + targetName + " §aразмучен");
if (!silent) {
@ -66,7 +66,7 @@ public class UnmuteCommand implements CommandExecutor, TabCompleter {
}
// Размучиваем онлайн игрока
if (plugin.getMuteManager().unmute(target.getUniqueId())) {
if (plugin.getMuteManager().unmute(target.getUniqueId(), sender.getName())) {
sender.sendMessage("§aИгрок §e" + target.getName() + " §aразмучен");
target.sendMessage("§aВы были размучены!");