mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16:45 +01:00
Rearranged the colors for fabulous to make it more rainbowrific
This commit is contained in:
parent
0ca264580c
commit
297c461b44
@ -95,9 +95,9 @@ public class vminecraftChat {
|
|||||||
public static String rainbow(String msg){
|
public static String rainbow(String msg){
|
||||||
String temp = "";
|
String temp = "";
|
||||||
//The array of colors to use
|
//The array of colors to use
|
||||||
String[] rainbow = new String[] {Colors.Red, Colors.Rose,
|
String[] rainbow = new String[] {Colors.Red, Colors.Rose, Colors.Gold,
|
||||||
Colors.Yellow, Colors.Green, Colors.Blue,
|
Colors.Yellow, Colors.LightGreen, Colors.Green, Colors.Blue,
|
||||||
Colors.LightPurple, Colors.Purple};
|
Colors.Navy, Colors.DarkPurple, Colors.Purple, Colors.LightPurple};
|
||||||
int counter=0;
|
int counter=0;
|
||||||
//Loop through the message applying the colors
|
//Loop through the message applying the colors
|
||||||
for(int x=0; x<msg.length(); x++)
|
for(int x=0; x<msg.length(); x++)
|
||||||
@ -105,7 +105,7 @@ public class vminecraftChat {
|
|||||||
temp+=rainbow[counter]+msg.charAt(x);
|
temp+=rainbow[counter]+msg.charAt(x);
|
||||||
|
|
||||||
if(msg.charAt(x)!=' ') counter++;
|
if(msg.charAt(x)!=' ') counter++;
|
||||||
if(counter==7) counter = 0;
|
if(counter==rainbow.length) counter = 0;
|
||||||
}
|
}
|
||||||
return temp;
|
return temp;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user