Package me.bimmr.bimmcore.misc
Class RandomChatColor
- java.lang.Object
-
- me.bimmr.bimmcore.misc.RandomChatColor
-
public class RandomChatColor extends java.lang.Object
Utilities class to get a random color/format
-
-
Constructor Summary
Constructors Constructor Description RandomChatColor()
-
Method Summary
Modifier and Type Method Description static org.bukkit.ChatColor
getColor(org.bukkit.ChatColor... validChatcolors)
Gets a random ChatColor from the given ChatColors (Black is not a possible outcome because black is hard to read)static org.bukkit.ChatColor
getFormat(org.bukkit.ChatColor... chatFormats)
Get a random ChatColor(Format) from the given ChatColor(Format)s
-
-
-
Method Detail
-
getColor
public static org.bukkit.ChatColor getColor(org.bukkit.ChatColor... validChatcolors)
Gets a random ChatColor from the given ChatColors (Black is not a possible outcome because black is hard to read)- Parameters:
validChatcolors
- the valid chatcolors- Returns:
- color
-
getFormat
public static org.bukkit.ChatColor getFormat(org.bukkit.ChatColor... chatFormats)
Get a random ChatColor(Format) from the given ChatColor(Format)s- Parameters:
chatFormats
- the chat formats- Returns:
- format
-
-