refactor: restructure services and filters architecture
- Remove deprecated service interfaces (CooldownService, IgnoreService, PMService, PlayerDataService, SpyService) - Add new unified service interfaces (MessagingService, PlayerService, PunishmentService) - Extract FilterResult as standalone class from AdvancedMessageFilter - Implement individual filter classes (CharacterFilter, FloodFilter, SpamFilter, SwearFilter, UrlFilter) - Add moderation commands (BanCommand, WarnCommand, SilentWarnCommand, UnbanCommand) - Introduce data models for punishment tracking (BanRecord, WarnEntry) - Refactor messaging service with new MessagingServiceImpl implementation - Add mute service utilities (MuteDataStorage, MutePermissionChecker) - Implement PunishmentServiceImpl with snapshot tracking - Add Discord integration components (DiscordConfig, DiscordMessageService) - Introduce command handlers for gradient module (ColorCommandHandler, PrefixCommandHandler) - Add renderer components (EmojiComponent, GradientBuilder, UrlProcessor) - Add utility classes (ColorConverter, MessageSender, PlaceholderProcessor) - Update configuration files and plugin metadata - Add documentation files (CODE_REVIEW_RU.md, REFACTORING_SERVICES.md) - Consolidate service architecture for improved maintainability and separation of concerns
This commit is contained in:
parent
2d79d2a91d
commit
bba480002f
181 changed files with 3455 additions and 2908 deletions
|
|
@ -36,7 +36,7 @@ commands:
|
|||
description: Send private message
|
||||
usage: /msg <player> <message>
|
||||
permission: chat.pm.use
|
||||
aliases: [ tell, w, pm, m, ьып, ееддж, цж, зьж, ьж ]
|
||||
aliases: [ tell, pm, m, ьып, ееддж, цж, зьж, ьж ]
|
||||
|
||||
reply:
|
||||
description: Reply to last message
|
||||
|
|
@ -146,6 +146,36 @@ commands:
|
|||
permission: lochat.muteblame
|
||||
aliases: [ muteblame, мутблейм, ьгеуидфьу ]
|
||||
|
||||
warn:
|
||||
description: Warn a player (visible to them)
|
||||
usage: /warn <player> [reason]
|
||||
permission: lochat.warn
|
||||
aliases: [ w, варн ]
|
||||
|
||||
silentwarn:
|
||||
description: Silent warn (logged; staff with lochat.warn.notify see)
|
||||
usage: /silentwarn <player> [reason]
|
||||
permission: lochat.warn.silent
|
||||
aliases: [ siw ]
|
||||
|
||||
lban:
|
||||
description: Ban a player
|
||||
usage: /lban <player> [time|perm] [reason]
|
||||
permission: lochat.ban
|
||||
aliases: [ ban, бан ]
|
||||
|
||||
lunban:
|
||||
description: Unban a player
|
||||
usage: /lunban <player>
|
||||
permission: lochat.unban
|
||||
aliases: [ unban, разбан ]
|
||||
|
||||
playerinfo:
|
||||
description: Player info and moderation stats
|
||||
usage: /playerinfo <player>
|
||||
permission: lochat.playerinfo
|
||||
aliases: [ pi, инфо ]
|
||||
|
||||
# ═══════════════════════════════════════════════════════════════════════════════
|
||||
# КАСТОМНЫЕ КОМАНДЫ
|
||||
# ═══════════════════════════════════════════════════════════════════════════════
|
||||
|
|
@ -284,6 +314,34 @@ permissions:
|
|||
lochat.mute.dur.perm:
|
||||
description: Can mute permanently
|
||||
default: op
|
||||
|
||||
lochat.warn:
|
||||
description: Issue a visible warning
|
||||
default: op
|
||||
lochat.warn.silent:
|
||||
description: Issue a silent warning
|
||||
default: op
|
||||
lochat.warn.notify:
|
||||
description: See silent warn notifications
|
||||
default: op
|
||||
lochat.ban:
|
||||
description: Ban players
|
||||
default: op
|
||||
lochat.ban.override:
|
||||
description: Ban players with lochat.bypass.ban
|
||||
default: op
|
||||
lochat.unban:
|
||||
description: Unban players
|
||||
default: op
|
||||
lochat.bypass.warn:
|
||||
description: Immune to /warn
|
||||
default: false
|
||||
lochat.bypass.ban:
|
||||
description: Immune to /lban (unless staff has lochat.ban.override)
|
||||
default: false
|
||||
lochat.playerinfo:
|
||||
description: View player moderation stats
|
||||
default: op
|
||||
lochat.clearchat.config:
|
||||
description: Can configure clear chat message
|
||||
default: op
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue