Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/coasterfreakde/minecraft-spigot-rgb-chat-support

Use RGB Color Codes in Chat. Requires Minecraft Java 1.16+
https://github.com/coasterfreakde/minecraft-spigot-rgb-chat-support

Last synced: about 2 months ago
JSON representation

Use RGB Color Codes in Chat. Requires Minecraft Java 1.16+

Awesome Lists containing this project

README

        

# minecraft-spigot-rgb-chat-support
Use RGB Color Codes in Chat. Requires Minecraft Java 1.16+

Just a simple utility package to send colored rgb text into a minecraft chat.

Supported patterns:
- `#RRGGBB`, `RRGGBB`, `{#RRGGBB}`, `&x&r&r&g&g&b&b`

Gradients:
- `Text to apply gradient on`

Usage:
- `player.sendMessage(*TextComponent.fromLegacyText(RGBApi.toColoredMessage(rawChatMessageWithColorCodes)))`

![Chat Gradient](https://i.imgur.com/ASTODE7.png)

## Import in your Gradle/Maven Project

### Gradle:

#### Add Jitpack as Maven repo
```
repositories {
maven { url 'https://jitpack.io' }
}
```

#### Add it to your dependencies
```
dependencies {
compile 'com.github.CoasterFreakDE:minecraft-spigot-rgb-chat-support:1.0.5'
}
```

### Maven:

#### Add Jitpack as Maven repo
```


jitpack.io
https://jitpack.io

```

#### Add it to your dependencies
```

com.github.CoasterFreakDE
minecraft-spigot-rgb-chat-support
1.0.5

```