From 0e043afddb0966af9335490bed8ade3aab0dff6e Mon Sep 17 00:00:00 2001 From: nossr50 Date: Thu, 23 Dec 2010 17:48:08 -0800 Subject: [PATCH] Added xmas style coloring, use ^x to color things as such --- vMinecraftChat.java | 66 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/vMinecraftChat.java b/vMinecraftChat.java index 28c432d34..fa7e9e32b 100644 --- a/vMinecraftChat.java +++ b/vMinecraftChat.java @@ -24,6 +24,14 @@ public class vMinecraftChat { Colors.DarkPurple, Colors.Purple, Colors.LightPurple}; + protected static final String[] xmas = new String[] { + Colors.Red, + Colors.Red, + Colors.White, + Colors.White, + Colors.Green, + Colors.Green, + }; //===================================================================== //Function: gmsg @@ -252,6 +260,25 @@ public class vMinecraftChat { if(counter==rainbow.length) counter = 0; } return temp; + } + //===================================================================== + //Function: xmas + //Input: String msg: The string to colorify + //Output: String: The xmas colored result + //Use: Makes a string more festive + //===================================================================== + public static String xmas(String msg){ + String temp = ""; + int counter=0; + //Loop through the message applying the colors + for(int x=0; x