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.commands.rp;
import com.loki.lochat.compat.Msg;
import com.loki.lochat.LoChat;
import com.loki.lochat.api.service.PlayerService;
import com.loki.lochat.commands.base.PlayerCommand;
@ -37,7 +39,7 @@ public class MeCommand extends PlayerCommand {
int remaining = playerService.getRemainingCooldown(player.getUniqueId(), "rp_me", cooldown);
String msg = plugin.getConfigManager().getMessagesConfig().getCooldownMessage()
.replace("{remaining}", String.valueOf(remaining));
player.sendMessage(ChatFormatter.parse(msg));
Msg.send(player, ChatFormatter.parse(msg));
return true;
}