diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index cc6a8a5..0b01c66 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -31,7 +31,7 @@ jobs: run: ./gradlew test --no-daemon - name: Upload build artifacts - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v3 if: success() with: name: lochat-plugin @@ -39,7 +39,7 @@ jobs: retention-days: 30 - name: Upload test results - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v3 if: always() with: name: test-results diff --git a/.forgejo/workflows/quality.yml b/.forgejo/workflows/quality.yml index 3bca130..57ac232 100644 --- a/.forgejo/workflows/quality.yml +++ b/.forgejo/workflows/quality.yml @@ -31,7 +31,7 @@ jobs: run: ./gradlew test jacocoTestReport --no-daemon - name: Upload coverage reports - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v3 if: always() with: name: coverage-reports diff --git a/bin/main/com/loki/lochat/commands/CommandManager.class b/bin/main/com/loki/lochat/commands/CommandManager.class index d4c76f7..ec9feae 100644 Binary files a/bin/main/com/loki/lochat/commands/CommandManager.class and b/bin/main/com/loki/lochat/commands/CommandManager.class differ diff --git a/bin/main/com/loki/lochat/commands/CustomCommandsCommand.class b/bin/main/com/loki/lochat/commands/CustomCommandsCommand.class index 75f89d0..f144c30 100644 Binary files a/bin/main/com/loki/lochat/commands/CustomCommandsCommand.class and b/bin/main/com/loki/lochat/commands/CustomCommandsCommand.class differ diff --git a/bin/main/com/loki/lochat/commands/admin/AnnounceCommand.class b/bin/main/com/loki/lochat/commands/admin/broadcast/AnnounceCommand.class similarity index 83% rename from bin/main/com/loki/lochat/commands/admin/AnnounceCommand.class rename to bin/main/com/loki/lochat/commands/admin/broadcast/AnnounceCommand.class index 3d1c7e7..31446b0 100644 Binary files a/bin/main/com/loki/lochat/commands/admin/AnnounceCommand.class and b/bin/main/com/loki/lochat/commands/admin/broadcast/AnnounceCommand.class differ diff --git a/bin/main/com/loki/lochat/commands/admin/DiscordCommand.class b/bin/main/com/loki/lochat/commands/admin/broadcast/DiscordCommand.class similarity index 81% rename from bin/main/com/loki/lochat/commands/admin/DiscordCommand.class rename to bin/main/com/loki/lochat/commands/admin/broadcast/DiscordCommand.class index f11bd5a..bd741ae 100644 Binary files a/bin/main/com/loki/lochat/commands/admin/DiscordCommand.class and b/bin/main/com/loki/lochat/commands/admin/broadcast/DiscordCommand.class differ diff --git a/bin/main/com/loki/lochat/commands/admin/ChatSpyCommand.class b/bin/main/com/loki/lochat/commands/admin/chat/ChatSpyCommand.class similarity index 58% rename from bin/main/com/loki/lochat/commands/admin/ChatSpyCommand.class rename to bin/main/com/loki/lochat/commands/admin/chat/ChatSpyCommand.class index 7b964f3..cc53d9d 100644 Binary files a/bin/main/com/loki/lochat/commands/admin/ChatSpyCommand.class and b/bin/main/com/loki/lochat/commands/admin/chat/ChatSpyCommand.class differ diff --git a/bin/main/com/loki/lochat/commands/admin/ClearChatCommand.class b/bin/main/com/loki/lochat/commands/admin/chat/ClearChatCommand.class similarity index 61% rename from bin/main/com/loki/lochat/commands/admin/ClearChatCommand.class rename to bin/main/com/loki/lochat/commands/admin/chat/ClearChatCommand.class index 3cf2733..0f978dd 100644 Binary files a/bin/main/com/loki/lochat/commands/admin/ClearChatCommand.class and b/bin/main/com/loki/lochat/commands/admin/chat/ClearChatCommand.class differ diff --git a/bin/main/com/loki/lochat/commands/admin/ClearChatConfigCommand.class b/bin/main/com/loki/lochat/commands/admin/chat/ClearChatConfigCommand.class similarity index 85% rename from bin/main/com/loki/lochat/commands/admin/ClearChatConfigCommand.class rename to bin/main/com/loki/lochat/commands/admin/chat/ClearChatConfigCommand.class index e79c713..e33eee1 100644 Binary files a/bin/main/com/loki/lochat/commands/admin/ClearChatConfigCommand.class and b/bin/main/com/loki/lochat/commands/admin/chat/ClearChatConfigCommand.class differ diff --git a/bin/main/com/loki/lochat/commands/admin/HubCommand.class b/bin/main/com/loki/lochat/commands/admin/system/HubCommand.class similarity index 74% rename from bin/main/com/loki/lochat/commands/admin/HubCommand.class rename to bin/main/com/loki/lochat/commands/admin/system/HubCommand.class index da4339f..b164af2 100644 Binary files a/bin/main/com/loki/lochat/commands/admin/HubCommand.class and b/bin/main/com/loki/lochat/commands/admin/system/HubCommand.class differ diff --git a/bin/main/com/loki/lochat/commands/admin/LoChatCommand.class b/bin/main/com/loki/lochat/commands/admin/system/LoChatCommand.class similarity index 86% rename from bin/main/com/loki/lochat/commands/admin/LoChatCommand.class rename to bin/main/com/loki/lochat/commands/admin/system/LoChatCommand.class index 714ce1a..b2410aa 100644 Binary files a/bin/main/com/loki/lochat/commands/admin/LoChatCommand.class and b/bin/main/com/loki/lochat/commands/admin/system/LoChatCommand.class differ diff --git a/bin/main/com/loki/lochat/commands/admin/ReloadConfigCommand.class b/bin/main/com/loki/lochat/commands/admin/system/ReloadConfigCommand.class similarity index 71% rename from bin/main/com/loki/lochat/commands/admin/ReloadConfigCommand.class rename to bin/main/com/loki/lochat/commands/admin/system/ReloadConfigCommand.class index 49ba3fd..4f6c9c4 100644 Binary files a/bin/main/com/loki/lochat/commands/admin/ReloadConfigCommand.class and b/bin/main/com/loki/lochat/commands/admin/system/ReloadConfigCommand.class differ diff --git a/bin/main/com/loki/lochat/commands/chat/GlobalChatCommand.class b/bin/main/com/loki/lochat/commands/chat/GlobalChatCommand.class index 71599ea..7326ae4 100644 Binary files a/bin/main/com/loki/lochat/commands/chat/GlobalChatCommand.class and b/bin/main/com/loki/lochat/commands/chat/GlobalChatCommand.class differ diff --git a/bin/main/com/loki/lochat/commands/chat/LocalChatCommand.class b/bin/main/com/loki/lochat/commands/chat/LocalChatCommand.class index d3f40f5..c820701 100644 Binary files a/bin/main/com/loki/lochat/commands/chat/LocalChatCommand.class and b/bin/main/com/loki/lochat/commands/chat/LocalChatCommand.class differ diff --git a/bin/main/com/loki/lochat/commands/messaging/IgnoreCommand.class b/bin/main/com/loki/lochat/commands/messaging/IgnoreCommand.class index 511fd7c..bcc76bc 100644 Binary files a/bin/main/com/loki/lochat/commands/messaging/IgnoreCommand.class and b/bin/main/com/loki/lochat/commands/messaging/IgnoreCommand.class differ diff --git a/bin/main/com/loki/lochat/commands/messaging/IgnoreListCommand.class b/bin/main/com/loki/lochat/commands/messaging/IgnoreListCommand.class index f95c198..6502363 100644 Binary files a/bin/main/com/loki/lochat/commands/messaging/IgnoreListCommand.class and b/bin/main/com/loki/lochat/commands/messaging/IgnoreListCommand.class differ diff --git a/bin/main/com/loki/lochat/commands/messaging/MsgCommand.class b/bin/main/com/loki/lochat/commands/messaging/MsgCommand.class index 3ce7de1..a73d17a 100644 Binary files a/bin/main/com/loki/lochat/commands/messaging/MsgCommand.class and b/bin/main/com/loki/lochat/commands/messaging/MsgCommand.class differ diff --git a/bin/main/com/loki/lochat/commands/messaging/ReplyCommand.class b/bin/main/com/loki/lochat/commands/messaging/ReplyCommand.class index a126f90..9f88850 100644 Binary files a/bin/main/com/loki/lochat/commands/messaging/ReplyCommand.class and b/bin/main/com/loki/lochat/commands/messaging/ReplyCommand.class differ diff --git a/bin/main/com/loki/lochat/commands/messaging/UnignoreCommand.class b/bin/main/com/loki/lochat/commands/messaging/UnignoreCommand.class index 01ae39d..3b86919 100644 Binary files a/bin/main/com/loki/lochat/commands/messaging/UnignoreCommand.class and b/bin/main/com/loki/lochat/commands/messaging/UnignoreCommand.class differ diff --git a/bin/main/com/loki/lochat/commands/moderation/BanCommand.class b/bin/main/com/loki/lochat/commands/moderation/ban/BanCommand.class similarity index 86% rename from bin/main/com/loki/lochat/commands/moderation/BanCommand.class rename to bin/main/com/loki/lochat/commands/moderation/ban/BanCommand.class index 30afb73..1d60b77 100644 Binary files a/bin/main/com/loki/lochat/commands/moderation/BanCommand.class and b/bin/main/com/loki/lochat/commands/moderation/ban/BanCommand.class differ diff --git a/bin/main/com/loki/lochat/commands/moderation/UnbanCommand.class b/bin/main/com/loki/lochat/commands/moderation/ban/UnbanCommand.class similarity index 77% rename from bin/main/com/loki/lochat/commands/moderation/UnbanCommand.class rename to bin/main/com/loki/lochat/commands/moderation/ban/UnbanCommand.class index 0c0e18e..29e039e 100644 Binary files a/bin/main/com/loki/lochat/commands/moderation/UnbanCommand.class and b/bin/main/com/loki/lochat/commands/moderation/ban/UnbanCommand.class differ diff --git a/bin/main/com/loki/lochat/commands/moderation/MuteBlameCommand.class b/bin/main/com/loki/lochat/commands/moderation/mute/MuteBlameCommand.class similarity index 87% rename from bin/main/com/loki/lochat/commands/moderation/MuteBlameCommand.class rename to bin/main/com/loki/lochat/commands/moderation/mute/MuteBlameCommand.class index 15437a0..bce1baf 100644 Binary files a/bin/main/com/loki/lochat/commands/moderation/MuteBlameCommand.class and b/bin/main/com/loki/lochat/commands/moderation/mute/MuteBlameCommand.class differ diff --git a/bin/main/com/loki/lochat/commands/moderation/MuteCommand.class b/bin/main/com/loki/lochat/commands/moderation/mute/MuteCommand.class similarity index 90% rename from bin/main/com/loki/lochat/commands/moderation/MuteCommand.class rename to bin/main/com/loki/lochat/commands/moderation/mute/MuteCommand.class index 02c0255..c080456 100644 Binary files a/bin/main/com/loki/lochat/commands/moderation/MuteCommand.class and b/bin/main/com/loki/lochat/commands/moderation/mute/MuteCommand.class differ diff --git a/bin/main/com/loki/lochat/commands/moderation/MuteHistoryCommand.class b/bin/main/com/loki/lochat/commands/moderation/mute/MuteHistoryCommand.class similarity index 78% rename from bin/main/com/loki/lochat/commands/moderation/MuteHistoryCommand.class rename to bin/main/com/loki/lochat/commands/moderation/mute/MuteHistoryCommand.class index 7f10921..f677142 100644 Binary files a/bin/main/com/loki/lochat/commands/moderation/MuteHistoryCommand.class and b/bin/main/com/loki/lochat/commands/moderation/mute/MuteHistoryCommand.class differ diff --git a/bin/main/com/loki/lochat/commands/moderation/MuteListCommand.class b/bin/main/com/loki/lochat/commands/moderation/mute/MuteListCommand.class similarity index 85% rename from bin/main/com/loki/lochat/commands/moderation/MuteListCommand.class rename to bin/main/com/loki/lochat/commands/moderation/mute/MuteListCommand.class index 22be0ee..a03d8f0 100644 Binary files a/bin/main/com/loki/lochat/commands/moderation/MuteListCommand.class and b/bin/main/com/loki/lochat/commands/moderation/mute/MuteListCommand.class differ diff --git a/bin/main/com/loki/lochat/commands/moderation/UnmuteCommand.class b/bin/main/com/loki/lochat/commands/moderation/mute/UnmuteCommand.class similarity index 84% rename from bin/main/com/loki/lochat/commands/moderation/UnmuteCommand.class rename to bin/main/com/loki/lochat/commands/moderation/mute/UnmuteCommand.class index dc83475..32e180d 100644 Binary files a/bin/main/com/loki/lochat/commands/moderation/UnmuteCommand.class and b/bin/main/com/loki/lochat/commands/moderation/mute/UnmuteCommand.class differ diff --git a/bin/main/com/loki/lochat/commands/moderation/SilentWarnCommand.class b/bin/main/com/loki/lochat/commands/moderation/warn/SilentWarnCommand.class similarity index 81% rename from bin/main/com/loki/lochat/commands/moderation/SilentWarnCommand.class rename to bin/main/com/loki/lochat/commands/moderation/warn/SilentWarnCommand.class index 697f2d4..6d98c50 100644 Binary files a/bin/main/com/loki/lochat/commands/moderation/SilentWarnCommand.class and b/bin/main/com/loki/lochat/commands/moderation/warn/SilentWarnCommand.class differ diff --git a/bin/main/com/loki/lochat/commands/moderation/WarnCommand.class b/bin/main/com/loki/lochat/commands/moderation/warn/WarnCommand.class similarity index 83% rename from bin/main/com/loki/lochat/commands/moderation/WarnCommand.class rename to bin/main/com/loki/lochat/commands/moderation/warn/WarnCommand.class index ec27dae..008634b 100644 Binary files a/bin/main/com/loki/lochat/commands/moderation/WarnCommand.class and b/bin/main/com/loki/lochat/commands/moderation/warn/WarnCommand.class differ diff --git a/bin/main/com/loki/lochat/commands/nick/NickCommand.class b/bin/main/com/loki/lochat/commands/nick/NickCommand.class index 67c9de4..607f5c4 100644 Binary files a/bin/main/com/loki/lochat/commands/nick/NickCommand.class and b/bin/main/com/loki/lochat/commands/nick/NickCommand.class differ diff --git a/bin/main/com/loki/lochat/commands/nick/PlayerInfoCommand.class b/bin/main/com/loki/lochat/commands/nick/PlayerInfoCommand.class index d10b497..c0fdb6c 100644 Binary files a/bin/main/com/loki/lochat/commands/nick/PlayerInfoCommand.class and b/bin/main/com/loki/lochat/commands/nick/PlayerInfoCommand.class differ diff --git a/bin/main/com/loki/lochat/commands/rp/DoCommand.class b/bin/main/com/loki/lochat/commands/rp/DoCommand.class index 9e4cdd8..371a781 100644 Binary files a/bin/main/com/loki/lochat/commands/rp/DoCommand.class and b/bin/main/com/loki/lochat/commands/rp/DoCommand.class differ diff --git a/bin/main/com/loki/lochat/commands/rp/MeCommand.class b/bin/main/com/loki/lochat/commands/rp/MeCommand.class index 58d4f3a..72276c6 100644 Binary files a/bin/main/com/loki/lochat/commands/rp/MeCommand.class and b/bin/main/com/loki/lochat/commands/rp/MeCommand.class differ diff --git a/bin/main/com/loki/lochat/commands/rp/RollCommand.class b/bin/main/com/loki/lochat/commands/rp/RollCommand.class index 4c927b8..1e0861f 100644 Binary files a/bin/main/com/loki/lochat/commands/rp/RollCommand.class and b/bin/main/com/loki/lochat/commands/rp/RollCommand.class differ diff --git a/bin/main/com/loki/lochat/commands/rp/RpUtil.class b/bin/main/com/loki/lochat/commands/rp/RpUtil.class index d16fd08..a507f05 100644 Binary files a/bin/main/com/loki/lochat/commands/rp/RpUtil.class and b/bin/main/com/loki/lochat/commands/rp/RpUtil.class differ diff --git a/bin/main/com/loki/lochat/commands/rp/TryCommand.class b/bin/main/com/loki/lochat/commands/rp/TryCommand.class index 846743a..be6a376 100644 Binary files a/bin/main/com/loki/lochat/commands/rp/TryCommand.class and b/bin/main/com/loki/lochat/commands/rp/TryCommand.class differ diff --git a/bin/main/com/loki/lochat/config/ConfigManager.class b/bin/main/com/loki/lochat/config/ConfigManager.class index 7a37db7..de4a9cd 100644 Binary files a/bin/main/com/loki/lochat/config/ConfigManager.class and b/bin/main/com/loki/lochat/config/ConfigManager.class differ diff --git a/bin/main/com/loki/lochat/config/FiltersConfig.class b/bin/main/com/loki/lochat/config/FiltersConfig.class index 7aa44c4..6142cbd 100644 Binary files a/bin/main/com/loki/lochat/config/FiltersConfig.class and b/bin/main/com/loki/lochat/config/FiltersConfig.class differ diff --git a/bin/main/com/loki/lochat/config/MessageConfig.class b/bin/main/com/loki/lochat/config/MessageConfig.class index 8b1893d..6acb34c 100644 Binary files a/bin/main/com/loki/lochat/config/MessageConfig.class and b/bin/main/com/loki/lochat/config/MessageConfig.class differ diff --git a/bin/main/com/loki/lochat/config/MessagesConfig.class b/bin/main/com/loki/lochat/config/MessagesConfig.class index 5678868..32949fc 100644 Binary files a/bin/main/com/loki/lochat/config/MessagesConfig.class and b/bin/main/com/loki/lochat/config/MessagesConfig.class differ diff --git a/bin/main/com/loki/lochat/config/MuteConfig.class b/bin/main/com/loki/lochat/config/MuteConfig.class index 31ad38f..1565152 100644 Binary files a/bin/main/com/loki/lochat/config/MuteConfig.class and b/bin/main/com/loki/lochat/config/MuteConfig.class differ diff --git a/bin/main/com/loki/lochat/config/RatConfig.class b/bin/main/com/loki/lochat/config/RatConfig.class new file mode 100644 index 0000000..f4315c8 Binary files /dev/null and b/bin/main/com/loki/lochat/config/RatConfig.class differ diff --git a/bin/main/com/loki/lochat/config/SoundsConfig.class b/bin/main/com/loki/lochat/config/SoundsConfig.class index fb3977f..72a50ea 100644 Binary files a/bin/main/com/loki/lochat/config/SoundsConfig.class and b/bin/main/com/loki/lochat/config/SoundsConfig.class differ diff --git a/bin/main/com/loki/lochat/config/core/ConfigAccessor.class b/bin/main/com/loki/lochat/config/core/ConfigAccessor.class new file mode 100644 index 0000000..2a0cd83 Binary files /dev/null and b/bin/main/com/loki/lochat/config/core/ConfigAccessor.class differ diff --git a/bin/main/com/loki/lochat/config/core/ConfigLoader.class b/bin/main/com/loki/lochat/config/core/ConfigLoader.class new file mode 100644 index 0000000..c8f7aa8 Binary files /dev/null and b/bin/main/com/loki/lochat/config/core/ConfigLoader.class differ diff --git a/bin/main/com/loki/lochat/core/factory/ServiceFactory.class b/bin/main/com/loki/lochat/core/factory/ServiceFactory.class new file mode 100644 index 0000000..a904342 Binary files /dev/null and b/bin/main/com/loki/lochat/core/factory/ServiceFactory.class differ diff --git a/bin/main/com/loki/lochat/core/filter/MuteFilter.class b/bin/main/com/loki/lochat/core/filter/MuteFilter.class index 7c7fd51..885697a 100644 Binary files a/bin/main/com/loki/lochat/core/filter/MuteFilter.class and b/bin/main/com/loki/lochat/core/filter/MuteFilter.class differ diff --git a/bin/main/com/loki/lochat/core/registry/ServiceRegistry.class b/bin/main/com/loki/lochat/core/registry/ServiceRegistry.class index 6e6eb19..a5ae37b 100644 Binary files a/bin/main/com/loki/lochat/core/registry/ServiceRegistry.class and b/bin/main/com/loki/lochat/core/registry/ServiceRegistry.class differ diff --git a/bin/main/com/loki/lochat/core/service/ChatServiceImpl.class b/bin/main/com/loki/lochat/core/service/ChatServiceImpl.class index 0e825f1..4302624 100644 Binary files a/bin/main/com/loki/lochat/core/service/ChatServiceImpl.class and b/bin/main/com/loki/lochat/core/service/ChatServiceImpl.class differ diff --git a/bin/main/com/loki/lochat/core/service/MentionServiceImpl.class b/bin/main/com/loki/lochat/core/service/MentionServiceImpl.class index e53a44e..534e922 100644 Binary files a/bin/main/com/loki/lochat/core/service/MentionServiceImpl.class and b/bin/main/com/loki/lochat/core/service/MentionServiceImpl.class differ diff --git a/bin/main/com/loki/lochat/core/service/MessagingServiceImpl.class b/bin/main/com/loki/lochat/core/service/MessagingServiceImpl.class index 88563d1..ad532ef 100644 Binary files a/bin/main/com/loki/lochat/core/service/MessagingServiceImpl.class and b/bin/main/com/loki/lochat/core/service/MessagingServiceImpl.class differ diff --git a/bin/main/com/loki/lochat/core/service/MuteHistoryManager$1.class b/bin/main/com/loki/lochat/core/service/MuteHistoryManager$1.class deleted file mode 100644 index db1cdfb..0000000 Binary files a/bin/main/com/loki/lochat/core/service/MuteHistoryManager$1.class and /dev/null differ diff --git a/bin/main/com/loki/lochat/core/service/MuteHistoryManager.class b/bin/main/com/loki/lochat/core/service/MuteHistoryManager.class deleted file mode 100644 index 4e3d9de..0000000 Binary files a/bin/main/com/loki/lochat/core/service/MuteHistoryManager.class and /dev/null differ diff --git a/bin/main/com/loki/lochat/core/service/MuteServiceImpl.class b/bin/main/com/loki/lochat/core/service/MuteServiceImpl.class index 8a9dabe..55ae702 100644 Binary files a/bin/main/com/loki/lochat/core/service/MuteServiceImpl.class and b/bin/main/com/loki/lochat/core/service/MuteServiceImpl.class differ diff --git a/bin/main/com/loki/lochat/core/service/NickServiceImpl.class b/bin/main/com/loki/lochat/core/service/NickServiceImpl.class index 4edef27..2deef7d 100644 Binary files a/bin/main/com/loki/lochat/core/service/NickServiceImpl.class and b/bin/main/com/loki/lochat/core/service/NickServiceImpl.class differ diff --git a/bin/main/com/loki/lochat/core/service/PlayerServiceImpl.class b/bin/main/com/loki/lochat/core/service/PlayerServiceImpl.class index 7ce1f2d..0383637 100644 Binary files a/bin/main/com/loki/lochat/core/service/PlayerServiceImpl.class and b/bin/main/com/loki/lochat/core/service/PlayerServiceImpl.class differ diff --git a/bin/main/com/loki/lochat/core/service/PunishmentServiceImpl.class b/bin/main/com/loki/lochat/core/service/PunishmentServiceImpl.class index a60b788..8765ecf 100644 Binary files a/bin/main/com/loki/lochat/core/service/PunishmentServiceImpl.class and b/bin/main/com/loki/lochat/core/service/PunishmentServiceImpl.class differ diff --git a/bin/main/com/loki/lochat/core/service/messaging/IgnoreService.class b/bin/main/com/loki/lochat/core/service/messaging/IgnoreService.class new file mode 100644 index 0000000..56d3770 Binary files /dev/null and b/bin/main/com/loki/lochat/core/service/messaging/IgnoreService.class differ diff --git a/bin/main/com/loki/lochat/core/service/messaging/PrivateMessageService.class b/bin/main/com/loki/lochat/core/service/messaging/PrivateMessageService.class new file mode 100644 index 0000000..152fa2b Binary files /dev/null and b/bin/main/com/loki/lochat/core/service/messaging/PrivateMessageService.class differ diff --git a/bin/main/com/loki/lochat/core/service/messaging/SpyService.class b/bin/main/com/loki/lochat/core/service/messaging/SpyService.class new file mode 100644 index 0000000..723e9d1 Binary files /dev/null and b/bin/main/com/loki/lochat/core/service/messaging/SpyService.class differ diff --git a/bin/main/com/loki/lochat/core/service/mute/MuteDataStorage$1.class b/bin/main/com/loki/lochat/core/service/mute/MuteDataStorage$1.class index 22bb15e..60021a2 100644 Binary files a/bin/main/com/loki/lochat/core/service/mute/MuteDataStorage$1.class and b/bin/main/com/loki/lochat/core/service/mute/MuteDataStorage$1.class differ diff --git a/bin/main/com/loki/lochat/core/service/mute/MuteDataStorage.class b/bin/main/com/loki/lochat/core/service/mute/MuteDataStorage.class index cff3b68..10feeb4 100644 Binary files a/bin/main/com/loki/lochat/core/service/mute/MuteDataStorage.class and b/bin/main/com/loki/lochat/core/service/mute/MuteDataStorage.class differ diff --git a/bin/main/com/loki/lochat/core/service/mute/MuteHistoryManager$1.class b/bin/main/com/loki/lochat/core/service/mute/MuteHistoryManager$1.class new file mode 100644 index 0000000..16161ef Binary files /dev/null and b/bin/main/com/loki/lochat/core/service/mute/MuteHistoryManager$1.class differ diff --git a/bin/main/com/loki/lochat/core/service/mute/MuteHistoryManager.class b/bin/main/com/loki/lochat/core/service/mute/MuteHistoryManager.class new file mode 100644 index 0000000..9792568 Binary files /dev/null and b/bin/main/com/loki/lochat/core/service/mute/MuteHistoryManager.class differ diff --git a/bin/main/com/loki/lochat/core/service/mute/MutePermissionChecker.class b/bin/main/com/loki/lochat/core/service/mute/MutePermissionChecker.class index 4697803..2b01875 100644 Binary files a/bin/main/com/loki/lochat/core/service/mute/MutePermissionChecker.class and b/bin/main/com/loki/lochat/core/service/mute/MutePermissionChecker.class differ diff --git a/bin/main/com/loki/lochat/core/service/mute/strategies/ChatMuteStrategy.class b/bin/main/com/loki/lochat/core/service/mute/strategies/ChatMuteStrategy.class new file mode 100644 index 0000000..226ebc2 Binary files /dev/null and b/bin/main/com/loki/lochat/core/service/mute/strategies/ChatMuteStrategy.class differ diff --git a/bin/main/com/loki/lochat/core/service/mute/strategies/MuteStrategy.class b/bin/main/com/loki/lochat/core/service/mute/strategies/MuteStrategy.class new file mode 100644 index 0000000..d610722 Binary files /dev/null and b/bin/main/com/loki/lochat/core/service/mute/strategies/MuteStrategy.class differ diff --git a/bin/main/com/loki/lochat/core/service/mute/strategies/VoiceMuteStrategy.class b/bin/main/com/loki/lochat/core/service/mute/strategies/VoiceMuteStrategy.class new file mode 100644 index 0000000..441bc7d Binary files /dev/null and b/bin/main/com/loki/lochat/core/service/mute/strategies/VoiceMuteStrategy.class differ diff --git a/bin/main/com/loki/lochat/gradient/commands/GradientAdminCommand.class b/bin/main/com/loki/lochat/gradient/commands/GradientAdminCommand.class index be47dc5..a740667 100644 Binary files a/bin/main/com/loki/lochat/gradient/commands/GradientAdminCommand.class and b/bin/main/com/loki/lochat/gradient/commands/GradientAdminCommand.class differ diff --git a/bin/main/com/loki/lochat/gradient/commands/GradientColorCommand.class b/bin/main/com/loki/lochat/gradient/commands/GradientColorCommand.class index 43f9bf1..c172b7c 100644 Binary files a/bin/main/com/loki/lochat/gradient/commands/GradientColorCommand.class and b/bin/main/com/loki/lochat/gradient/commands/GradientColorCommand.class differ diff --git a/bin/main/com/loki/lochat/gradient/commands/GradientPrefixCommand.class b/bin/main/com/loki/lochat/gradient/commands/GradientPrefixCommand.class index f3f505c..cb31136 100644 Binary files a/bin/main/com/loki/lochat/gradient/commands/GradientPrefixCommand.class and b/bin/main/com/loki/lochat/gradient/commands/GradientPrefixCommand.class differ diff --git a/bin/main/com/loki/lochat/gradient/commands/handlers/ColorCommandHandler.class b/bin/main/com/loki/lochat/gradient/commands/handlers/ColorCommandHandler.class index 2980876..b56cbbc 100644 Binary files a/bin/main/com/loki/lochat/gradient/commands/handlers/ColorCommandHandler.class and b/bin/main/com/loki/lochat/gradient/commands/handlers/ColorCommandHandler.class differ diff --git a/bin/main/com/loki/lochat/gradient/commands/handlers/PrefixCommandHandler.class b/bin/main/com/loki/lochat/gradient/commands/handlers/PrefixCommandHandler.class index b1fa649..df6401b 100644 Binary files a/bin/main/com/loki/lochat/gradient/commands/handlers/PrefixCommandHandler.class and b/bin/main/com/loki/lochat/gradient/commands/handlers/PrefixCommandHandler.class differ diff --git a/bin/main/com/loki/lochat/gradient/commands/handlers/color/ColorCopyHandler.class b/bin/main/com/loki/lochat/gradient/commands/handlers/color/ColorCopyHandler.class new file mode 100644 index 0000000..a981a8e Binary files /dev/null and b/bin/main/com/loki/lochat/gradient/commands/handlers/color/ColorCopyHandler.class differ diff --git a/bin/main/com/loki/lochat/gradient/commands/handlers/color/ColorOffHandler.class b/bin/main/com/loki/lochat/gradient/commands/handlers/color/ColorOffHandler.class new file mode 100644 index 0000000..9cc7eb3 Binary files /dev/null and b/bin/main/com/loki/lochat/gradient/commands/handlers/color/ColorOffHandler.class differ diff --git a/bin/main/com/loki/lochat/gradient/commands/handlers/color/ColorOnHandler.class b/bin/main/com/loki/lochat/gradient/commands/handlers/color/ColorOnHandler.class new file mode 100644 index 0000000..a24cbda Binary files /dev/null and b/bin/main/com/loki/lochat/gradient/commands/handlers/color/ColorOnHandler.class differ diff --git a/bin/main/com/loki/lochat/gradient/commands/handlers/color/ColorResetHandler.class b/bin/main/com/loki/lochat/gradient/commands/handlers/color/ColorResetHandler.class new file mode 100644 index 0000000..48b321f Binary files /dev/null and b/bin/main/com/loki/lochat/gradient/commands/handlers/color/ColorResetHandler.class differ diff --git a/bin/main/com/loki/lochat/gradient/commands/handlers/color/ColorSetHandler.class b/bin/main/com/loki/lochat/gradient/commands/handlers/color/ColorSetHandler.class new file mode 100644 index 0000000..846a401 Binary files /dev/null and b/bin/main/com/loki/lochat/gradient/commands/handlers/color/ColorSetHandler.class differ diff --git a/bin/main/com/loki/lochat/gradient/commands/handlers/color/SubCommandHandler.class b/bin/main/com/loki/lochat/gradient/commands/handlers/color/SubCommandHandler.class new file mode 100644 index 0000000..ce51316 Binary files /dev/null and b/bin/main/com/loki/lochat/gradient/commands/handlers/color/SubCommandHandler.class differ diff --git a/bin/main/com/loki/lochat/gradient/commands/handlers/prefix/PrefixOffHandler.class b/bin/main/com/loki/lochat/gradient/commands/handlers/prefix/PrefixOffHandler.class new file mode 100644 index 0000000..bee8450 Binary files /dev/null and b/bin/main/com/loki/lochat/gradient/commands/handlers/prefix/PrefixOffHandler.class differ diff --git a/bin/main/com/loki/lochat/gradient/commands/handlers/prefix/PrefixOnHandler.class b/bin/main/com/loki/lochat/gradient/commands/handlers/prefix/PrefixOnHandler.class new file mode 100644 index 0000000..0ee81f1 Binary files /dev/null and b/bin/main/com/loki/lochat/gradient/commands/handlers/prefix/PrefixOnHandler.class differ diff --git a/bin/main/com/loki/lochat/gradient/commands/handlers/prefix/PrefixResetHandler.class b/bin/main/com/loki/lochat/gradient/commands/handlers/prefix/PrefixResetHandler.class new file mode 100644 index 0000000..0fab50a Binary files /dev/null and b/bin/main/com/loki/lochat/gradient/commands/handlers/prefix/PrefixResetHandler.class differ diff --git a/bin/main/com/loki/lochat/gradient/commands/handlers/prefix/PrefixSetHandler.class b/bin/main/com/loki/lochat/gradient/commands/handlers/prefix/PrefixSetHandler.class new file mode 100644 index 0000000..280be64 Binary files /dev/null and b/bin/main/com/loki/lochat/gradient/commands/handlers/prefix/PrefixSetHandler.class differ diff --git a/bin/main/com/loki/lochat/gradient/commands/handlers/prefix/PrefixSubCommandHandler.class b/bin/main/com/loki/lochat/gradient/commands/handlers/prefix/PrefixSubCommandHandler.class new file mode 100644 index 0000000..1dad053 Binary files /dev/null and b/bin/main/com/loki/lochat/gradient/commands/handlers/prefix/PrefixSubCommandHandler.class differ diff --git a/bin/main/com/loki/lochat/gradient/config/GradientMessages.class b/bin/main/com/loki/lochat/gradient/config/GradientMessages.class index e88a03e..08f14ec 100644 Binary files a/bin/main/com/loki/lochat/gradient/config/GradientMessages.class and b/bin/main/com/loki/lochat/gradient/config/GradientMessages.class differ diff --git a/bin/main/com/loki/lochat/gradient/gui/GradientConfirmGUI.class b/bin/main/com/loki/lochat/gradient/gui/GradientConfirmGUI.class index 7389fa6..3584e88 100644 Binary files a/bin/main/com/loki/lochat/gradient/gui/GradientConfirmGUI.class and b/bin/main/com/loki/lochat/gradient/gui/GradientConfirmGUI.class differ diff --git a/bin/main/com/loki/lochat/gradient/listeners/GradientGUIListener.class b/bin/main/com/loki/lochat/gradient/listeners/GradientGUIListener.class index 50c186b..bedcce6 100644 Binary files a/bin/main/com/loki/lochat/gradient/listeners/GradientGUIListener.class and b/bin/main/com/loki/lochat/gradient/listeners/GradientGUIListener.class differ diff --git a/bin/main/com/loki/lochat/gradient/listeners/GradientPlayerListener.class b/bin/main/com/loki/lochat/gradient/listeners/GradientPlayerListener.class index f70f82b..8decb58 100644 Binary files a/bin/main/com/loki/lochat/gradient/listeners/GradientPlayerListener.class and b/bin/main/com/loki/lochat/gradient/listeners/GradientPlayerListener.class differ diff --git a/bin/main/com/loki/lochat/gradient/util/GradientConstants.class b/bin/main/com/loki/lochat/gradient/util/GradientConstants.class deleted file mode 100644 index ab741cc..0000000 Binary files a/bin/main/com/loki/lochat/gradient/util/GradientConstants.class and /dev/null differ diff --git a/bin/main/com/loki/lochat/integrations/discord/DiscordMessageService.class b/bin/main/com/loki/lochat/integrations/discord/DiscordMessageService.class index 28a2dd0..deb7501 100644 Binary files a/bin/main/com/loki/lochat/integrations/discord/DiscordMessageService.class and b/bin/main/com/loki/lochat/integrations/discord/DiscordMessageService.class differ diff --git a/bin/main/com/loki/lochat/listener/ChatEventListener.class b/bin/main/com/loki/lochat/listener/ChatEventListener.class index 3a17296..18cce17 100644 Binary files a/bin/main/com/loki/lochat/listener/ChatEventListener.class and b/bin/main/com/loki/lochat/listener/ChatEventListener.class differ diff --git a/bin/main/com/loki/lochat/listener/PlayerEventListener.class b/bin/main/com/loki/lochat/listener/PlayerEventListener.class index 7a9d66f..3cde257 100644 Binary files a/bin/main/com/loki/lochat/listener/PlayerEventListener.class and b/bin/main/com/loki/lochat/listener/PlayerEventListener.class differ diff --git a/bin/main/com/loki/lochat/managers/AutoMessageManager.class b/bin/main/com/loki/lochat/managers/AutoMessageManager.class index ffae4b3..9dc8630 100644 Binary files a/bin/main/com/loki/lochat/managers/AutoMessageManager.class and b/bin/main/com/loki/lochat/managers/AutoMessageManager.class differ diff --git a/bin/main/com/loki/lochat/managers/CustomCommandManager.class b/bin/main/com/loki/lochat/managers/CustomCommandManager.class index 0411504..5ee3509 100644 Binary files a/bin/main/com/loki/lochat/managers/CustomCommandManager.class and b/bin/main/com/loki/lochat/managers/CustomCommandManager.class differ diff --git a/bin/main/com/loki/lochat/managers/commands/MessageSender.class b/bin/main/com/loki/lochat/managers/commands/MessageSender.class index 85a72fd..88dd679 100644 Binary files a/bin/main/com/loki/lochat/managers/commands/MessageSender.class and b/bin/main/com/loki/lochat/managers/commands/MessageSender.class differ diff --git a/bin/main/com/loki/lochat/managers/commands/PlaceholderProcessor.class b/bin/main/com/loki/lochat/managers/commands/PlaceholderProcessor.class index 1354338..641e47f 100644 Binary files a/bin/main/com/loki/lochat/managers/commands/PlaceholderProcessor.class and b/bin/main/com/loki/lochat/managers/commands/PlaceholderProcessor.class differ diff --git a/bin/main/com/loki/lochat/renderer/EnhancedChatRenderer.class b/bin/main/com/loki/lochat/renderer/EnhancedChatRenderer.class index 3635f60..d583e12 100644 Binary files a/bin/main/com/loki/lochat/renderer/EnhancedChatRenderer.class and b/bin/main/com/loki/lochat/renderer/EnhancedChatRenderer.class differ diff --git a/bin/main/com/loki/lochat/utils/Constants.class b/bin/main/com/loki/lochat/utils/Constants.class deleted file mode 100644 index 1429e35..0000000 Binary files a/bin/main/com/loki/lochat/utils/Constants.class and /dev/null differ diff --git a/bin/main/com/loki/lochat/utils/ChatFormatter.class b/bin/main/com/loki/lochat/utils/format/ChatFormatter.class similarity index 89% rename from bin/main/com/loki/lochat/utils/ChatFormatter.class rename to bin/main/com/loki/lochat/utils/format/ChatFormatter.class index db2f997..a59d738 100644 Binary files a/bin/main/com/loki/lochat/utils/ChatFormatter.class and b/bin/main/com/loki/lochat/utils/format/ChatFormatter.class differ diff --git a/bin/main/com/loki/lochat/utils/TextFormatter.class b/bin/main/com/loki/lochat/utils/format/TextFormatter.class similarity index 84% rename from bin/main/com/loki/lochat/utils/TextFormatter.class rename to bin/main/com/loki/lochat/utils/format/TextFormatter.class index eb864a1..1230a43 100644 Binary files a/bin/main/com/loki/lochat/utils/TextFormatter.class and b/bin/main/com/loki/lochat/utils/format/TextFormatter.class differ diff --git a/bin/main/com/loki/lochat/utils/TimeFormatter.class b/bin/main/com/loki/lochat/utils/format/TimeFormatter.class similarity index 79% rename from bin/main/com/loki/lochat/utils/TimeFormatter.class rename to bin/main/com/loki/lochat/utils/format/TimeFormatter.class index 1e01057..05e5a77 100644 Binary files a/bin/main/com/loki/lochat/utils/TimeFormatter.class and b/bin/main/com/loki/lochat/utils/format/TimeFormatter.class differ diff --git a/bin/main/com/loki/lochat/utils/AdventureManager.class b/bin/main/com/loki/lochat/utils/platform/AdventureManager.class similarity index 87% rename from bin/main/com/loki/lochat/utils/AdventureManager.class rename to bin/main/com/loki/lochat/utils/platform/AdventureManager.class index 815bf63..d64f755 100644 Binary files a/bin/main/com/loki/lochat/utils/AdventureManager.class and b/bin/main/com/loki/lochat/utils/platform/AdventureManager.class differ diff --git a/bin/main/com/loki/lochat/utils/FoliaUtil.class b/bin/main/com/loki/lochat/utils/platform/FoliaUtil.class similarity index 92% rename from bin/main/com/loki/lochat/utils/FoliaUtil.class rename to bin/main/com/loki/lochat/utils/platform/FoliaUtil.class index 658c913..cedc760 100644 Binary files a/bin/main/com/loki/lochat/utils/FoliaUtil.class and b/bin/main/com/loki/lochat/utils/platform/FoliaUtil.class differ diff --git a/bin/main/com/loki/lochat/utils/DistanceUtil.class b/bin/main/com/loki/lochat/utils/player/DistanceUtil.class similarity index 58% rename from bin/main/com/loki/lochat/utils/DistanceUtil.class rename to bin/main/com/loki/lochat/utils/player/DistanceUtil.class index b098713..5c032d5 100644 Binary files a/bin/main/com/loki/lochat/utils/DistanceUtil.class and b/bin/main/com/loki/lochat/utils/player/DistanceUtil.class differ diff --git a/bin/main/com/loki/lochat/utils/MentionHandler.class b/bin/main/com/loki/lochat/utils/player/MentionHandler.class similarity index 70% rename from bin/main/com/loki/lochat/utils/MentionHandler.class rename to bin/main/com/loki/lochat/utils/player/MentionHandler.class index 6333479..d754780 100644 Binary files a/bin/main/com/loki/lochat/utils/MentionHandler.class and b/bin/main/com/loki/lochat/utils/player/MentionHandler.class differ diff --git a/bin/main/com/loki/lochat/utils/PlayerUtil.class b/bin/main/com/loki/lochat/utils/player/PlayerUtil.class similarity index 92% rename from bin/main/com/loki/lochat/utils/PlayerUtil.class rename to bin/main/com/loki/lochat/utils/player/PlayerUtil.class index 3982b53..8e2d9cd 100644 Binary files a/bin/main/com/loki/lochat/utils/PlayerUtil.class and b/bin/main/com/loki/lochat/utils/player/PlayerUtil.class differ diff --git a/bin/test/com/loki/lochat/gradient/util/GradientConstantsTest.class b/bin/test/com/loki/lochat/gradient/util/GradientConstantsTest.class index 24a6ae4..6c4f58c 100644 Binary files a/bin/test/com/loki/lochat/gradient/util/GradientConstantsTest.class and b/bin/test/com/loki/lochat/gradient/util/GradientConstantsTest.class differ diff --git a/bin/test/com/loki/lochat/utils/ChatFormatterTest.class b/bin/test/com/loki/lochat/utils/ChatFormatterTest.class index d29225d..6922b24 100644 Binary files a/bin/test/com/loki/lochat/utils/ChatFormatterTest.class and b/bin/test/com/loki/lochat/utils/ChatFormatterTest.class differ diff --git a/build.gradle.kts b/build.gradle.kts index b184b1e..7e78059 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,6 +1,7 @@ plugins { java id("xyz.jpenilla.run-paper") version "2.3.1" + jacoco } group = "com.loki" @@ -46,6 +47,19 @@ tasks.test { useJUnitPlatform() maxParallelForks = Runtime.getRuntime().availableProcessors() setForkEvery(100) + finalizedBy(tasks.jacocoTestReport) +} + +tasks.jacocoTestReport { + dependsOn(tasks.test) + reports { + xml.required.set(true) + html.required.set(true) + } +} + +jacoco { + toolVersion = "0.8.11" } tasks.jar { diff --git a/src/main/java/com/loki/lochat/config/ConfigManager.java b/src/main/java/com/loki/lochat/config/ConfigManager.java index 3dfb095..5780a87 100644 --- a/src/main/java/com/loki/lochat/config/ConfigManager.java +++ b/src/main/java/com/loki/lochat/config/ConfigManager.java @@ -35,7 +35,12 @@ public class ConfigManager { this.filtersConfig = new FiltersConfig(plugin); this.soundsConfig = new SoundsConfig(plugin); + // Инициализируем все конфиги this.appearanceConfig.init(); + this.messagesConfig.init(); + this.muteConfig.init(); + this.filtersConfig.init(); + this.soundsConfig.init(); loader.updateConfig(); } diff --git a/src/main/java/com/loki/lochat/config/FiltersConfig.java b/src/main/java/com/loki/lochat/config/FiltersConfig.java index 7dfded2..7176d46 100644 --- a/src/main/java/com/loki/lochat/config/FiltersConfig.java +++ b/src/main/java/com/loki/lochat/config/FiltersConfig.java @@ -11,7 +11,6 @@ public class FiltersConfig extends BaseConfig { public FiltersConfig(JavaPlugin plugin) { super(plugin, "filters.yml", true); - init(); // ✅ Явная инициализация } // ── Капс ──────────────────────────────────────────────────────────────────── diff --git a/src/main/java/com/loki/lochat/config/MessagesConfig.java b/src/main/java/com/loki/lochat/config/MessagesConfig.java index c9db1be..91212ec 100644 --- a/src/main/java/com/loki/lochat/config/MessagesConfig.java +++ b/src/main/java/com/loki/lochat/config/MessagesConfig.java @@ -9,7 +9,6 @@ public class MessagesConfig extends BaseConfig { public MessagesConfig(JavaPlugin plugin) { super(plugin, "messages.yml", true); // true = в папке config/ - init(); // ✅ Явная инициализация } // ── Общие сообщения ──────────────────────────────────────────────────────── diff --git a/src/main/java/com/loki/lochat/config/MuteConfig.java b/src/main/java/com/loki/lochat/config/MuteConfig.java index c534c46..ca86093 100644 --- a/src/main/java/com/loki/lochat/config/MuteConfig.java +++ b/src/main/java/com/loki/lochat/config/MuteConfig.java @@ -9,7 +9,6 @@ public class MuteConfig extends BaseConfig { public MuteConfig(JavaPlugin plugin) { super(plugin, "mute.yml", true); - init(); // ✅ Явная инициализация } // ── Основные настройки ────────────────────────────────────────────────────── diff --git a/src/main/java/com/loki/lochat/config/SoundsConfig.java b/src/main/java/com/loki/lochat/config/SoundsConfig.java index 571e3aa..8ac12cd 100644 --- a/src/main/java/com/loki/lochat/config/SoundsConfig.java +++ b/src/main/java/com/loki/lochat/config/SoundsConfig.java @@ -9,7 +9,6 @@ public class SoundsConfig extends BaseConfig { public SoundsConfig(JavaPlugin plugin) { super(plugin, "sounds.yml", true); - init(); // ✅ Явная инициализация } // ── Звуки упоминаний ──────────────────────────────────────────────────────── diff --git a/src/main/java/com/loki/lochat/core/service/MessagingServiceImpl.java b/src/main/java/com/loki/lochat/core/service/MessagingServiceImpl.java index 0081090..abbfd03 100644 --- a/src/main/java/com/loki/lochat/core/service/MessagingServiceImpl.java +++ b/src/main/java/com/loki/lochat/core/service/MessagingServiceImpl.java @@ -27,6 +27,7 @@ public class MessagingServiceImpl implements MessagingService { this.pmService = new PrivateMessageService(); this.spyService = new SpyService(messageConfig); this.ignoreService = new IgnoreService(plugin); + this.ignoreService.init(); } // ========== PM Delegation ========== diff --git a/src/main/java/com/loki/lochat/core/service/messaging/IgnoreService.java b/src/main/java/com/loki/lochat/core/service/messaging/IgnoreService.java index f914d62..13ddb35 100644 --- a/src/main/java/com/loki/lochat/core/service/messaging/IgnoreService.java +++ b/src/main/java/com/loki/lochat/core/service/messaging/IgnoreService.java @@ -22,6 +22,9 @@ public class IgnoreService { public IgnoreService(JavaPlugin plugin) { this.plugin = plugin; this.ignoreFile = new File(plugin.getDataFolder(), "ignores.yml"); + } + + public void init() { load(); } diff --git a/src/main/java/com/loki/lochat/managers/commands/PlaceholderProcessor.java b/src/main/java/com/loki/lochat/managers/commands/PlaceholderProcessor.java index 55ab7b1..a50e245 100644 --- a/src/main/java/com/loki/lochat/managers/commands/PlaceholderProcessor.java +++ b/src/main/java/com/loki/lochat/managers/commands/PlaceholderProcessor.java @@ -9,7 +9,7 @@ public class PlaceholderProcessor { // Базовые плейсхолдеры result = result.replace("{player}", player.getName()); - result = result.replace("{displayname}", player.getDisplayName()); + result = result.replace("{displayname}", net.kyori.adventure.text.serializer.plain.PlainTextComponentSerializer.plainText().serialize(player.displayName())); result = result.replace("{world}", player.getWorld().getName()); result = result.replace("{x}", String.valueOf(player.getLocation().getBlockX())); result = result.replace("{y}", String.valueOf(player.getLocation().getBlockY()));