port: replace Paper component APIs, chat pipeline, events and schedulers

- Msg.send/broadcast/actionBar/title/legacy/plain for all 58 files sendMessage replacements (plan step 3)
- ChatEventListener: AsyncChatEvent->AsyncPlayerChatEvent, getRecipients filtering, manual render+Msg.send loop, HIGHEST|ignoreCancelled, nobodyHeard via Bukkit scheduler (step 4)
- EnhancedChatRenderer: remove ChatRenderer/Audience, render(Player,Component,Component,Player), getLocale String, Msg.actionBar
- PlayerEventListener: join/quit/death String API, getCustomName/getDisplayName legacy, Msg.broadcast
- FoliaUtil: IS_FOLIA false, Bukkit scheduler only; AutoMessageManager BukkitTask
- CustomCommandManager: reflective getCommandMap; other mechanical fixes (displayName, kick, inventory titles)
- single universal jar (variant A) - loads on Spigot 1.20.1 and Paper
This commit is contained in:
loki5512344 2026-09-20 16:38:37 +02:00
parent 88e4e68cca
commit 7f513a7104
Signed by: boba
GPG key ID: 253067914055423B
56 changed files with 506 additions and 416 deletions

View file

@ -1,5 +1,7 @@
package com.loki.lochat.config;
import com.loki.lochat.compat.Msg;
import com.loki.lochat.LoChat;
import com.loki.lochat.utils.format.ChatFormatter;
@ -64,14 +66,14 @@ public class MessageConfig {
* Отправляет сообщение игроку
*/
public void send(CommandSender sender, String path) {
sender.sendMessage(getComponent(path));
Msg.send(sender, getComponent(path));
}
/**
* Отправляет сообщение игроку с заменами
*/
public void send(CommandSender sender, String path, String... replacements) {
sender.sendMessage(getComponent(path, replacements));
Msg.send(sender, getComponent(path, replacements));
}
// Shortcuts