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:
parent
c6175d9d61
commit
d92799613e
7 changed files with 428 additions and 10 deletions
|
|
@ -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Вы были размучены!");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue