HomeJavaModsChatColor | ColorCodes in the Chat
ChatColor | ColorCodes in the Chat
[​IMG]
Benutze ColorCodes im Chat! / Use ColorCodes in Chat

Setup:
Lade dir das Plugin herunter. / Download the Plugin
Tue es auf dein Server. / Do it on your Server
Reloade dein Server. / Reload it
Gebe dir die Permission oder du hast OP. /Give you the Perms or OP

Nun teste &cTest im Chat und viel Spaß! / Now test it with &cTest in Chat

ColorCodes Benutzung: / How to use ColorCodes:
&c -> Hellrot / red
&d -> Türkis / aqua
&4 -> Dunlelrot / darkred
&a -> Hellgrün / lightgreen
&9 -> Dunkelblau / blue
&5 -> Lila / purple
&6 -> Dunkelgelb / darkyellow

&r -> Resettet alle Farben / Reset all Colors
&l -> Macht das die Schrift dick wird / Make the Text bold
&k -> Erzeugt eine unleserliche Schrift / Generade an Text
&m -> Durchgetrichen / Striketroght
&n -> Unterstrichen / Underline


example2.png

=======

[​IMG]

- Java 8
- Spigot 1.8.8 / 1.7.2

========
Code:

Code (Text):
e.setMessage(ChatColor.translateAlternateColorCodes('&', e.getMessage()));
=======

Der Sorcecode wird ab 50 Downloads freigegeben!
The Sorcecode will be up to 50 Downlods open!

=========

Meilenstein: / Downloads:
1 Download - ✔️
10 Downloads - ✔️
50 Downloads - ✔️
100 Downloads - ❌
100+ Downloads - ❌

====================

Permissions:

chatcolor.use

-=-=- SourceCode -=-=-
Code (Text):
import org.bukkit.ChatColor;[/B][/CENTER]
[B]
[CENTER]import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.player.AsyncPlayerChatEvent;

public class ChatListener
  implements Listener
{
  @EventHandler(priority=EventPriority.HIGHEST)
  public void onChat(AsyncPlayerChatEvent e)
  {
    Player p = e.getPlayer();
    if (p.hasPermission("chatcolor.use")) {
      e.setMessage(ChatColor.translateAlternateColorCodes('&', e.getMessage()));
    }
  }
}
 



Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

ChatColor | ColorCodes in the Chat is a free Minecraft Java mod. Compatible with Minecraft 1.7, 1.8, 1.12. Downloaded 664 times (via Spigot). Download it and open it directly in the game.

Explore more