fix: critical fixes from code review — async translation, atomic persistence, unified chat pipeline, config key alignment
This commit is contained in:
parent
103c982f87
commit
b1b0c9082b
31 changed files with 530 additions and 384 deletions
|
|
@ -4,8 +4,6 @@ import com.loki.lochat.LoChat;
|
|||
import com.loki.lochat.api.service.ChatService;
|
||||
import com.loki.lochat.utils.format.ChatFormatter;
|
||||
|
||||
import net.kyori.adventure.text.minimessage.MiniMessage;
|
||||
|
||||
import org.bukkit.command.Command;
|
||||
import org.bukkit.command.CommandExecutor;
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
|
@ -14,7 +12,6 @@ import org.jetbrains.annotations.NotNull;
|
|||
|
||||
public class GlobalChatCommand implements CommandExecutor {
|
||||
|
||||
private static final MiniMessage MM = MiniMessage.miniMessage();
|
||||
private final LoChat plugin;
|
||||
private final ChatService chatService;
|
||||
|
||||
|
|
@ -46,7 +43,7 @@ public class GlobalChatCommand implements CommandExecutor {
|
|||
return true;
|
||||
}
|
||||
|
||||
chatService.sendGlobalMessage(player, MM.deserialize(String.join(" ", args)));
|
||||
chatService.sendGlobalMessage(player, String.join(" ", args));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue