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