diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a2c879..96894ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/). +## [0.1.8] - 2024-10-30 + +### Changed + +- **ChatEventHandler.java**: + - Change message color from white to yellow. + ## [0.1.7] - 2024-10-23 ### Changed diff --git a/CHANGELOG.ru.md b/CHANGELOG.ru.md index 2a8edfc..31cba49 100644 --- a/CHANGELOG.ru.md +++ b/CHANGELOG.ru.md @@ -4,6 +4,13 @@ Формат основан на [Keep a Changelog](https://keepachangelog.com/ru/1.0.0/), и этот проект придерживается [Семантического Версионирования](https://semver.org/lang/ru/). +## [0.1.8] - 2024-10-30 + +### Изменено + +- **ChatEventHandler.java**: + - Изменен цвет сообщений с белого на жёлтый. + ## [0.1.7] - 2024-10-23 ### Изменено diff --git a/gradle.properties b/gradle.properties index 0105d59..aeec50c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -38,7 +38,7 @@ mod_name=ChatIT # The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default. mod_license=All Rights Reserved # The mod version. See https://semver.org/ -mod_version=0.1.7-BETA +mod_version=0.1.8-BETA # The group ID for the mod. It is only important when publishing as an artifact to a Maven repository. # This should match the base package used for the mod sources. # See https://maven.apache.org/guides/mini/guide-naming-conventions.html diff --git a/src/main/java/org/itqop/chatit/handlers/ChatEventHandler.java b/src/main/java/org/itqop/chatit/handlers/ChatEventHandler.java index dc2f2e1..40b5cd2 100644 --- a/src/main/java/org/itqop/chatit/handlers/ChatEventHandler.java +++ b/src/main/java/org/itqop/chatit/handlers/ChatEventHandler.java @@ -136,8 +136,9 @@ public class ChatEventHandler { MutableComponent prefixComponent = openBracket.append(letterComponent).append(closeBracket); Component playerName = Component.literal(player.getName().getString()); - Component messageComponent = Component.literal(": " + message); + Component separatorComponent = Component.literal(": "); + Component messageComponent = Component.literal(message).withStyle(ChatFormatting.YELLOW); - return prefixComponent.append(playerName).append(messageComponent); + return prefixComponent.append(playerName).append(separatorComponent).append(messageComponent); } }