chore(release): v0.1.8
Change message color from white to yellow in ChatEventHandler.java
This commit is contained in:
parent
7ae321a413
commit
a5d3df7de0
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
### Изменено
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue