getByChar

public static ChatColor getByChar(char code)
public static ChatColor getByChar(String code)

Gets the color represented by the specified color code

Return

Associative org.bukkit.ChatColor with the given code, or null if it doesn't exist

Parameters

code

Code to check