mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
Sigh..
This commit is contained in:
parent
af1f52baaf
commit
1fd278a3c9
@ -92,7 +92,6 @@ public class vChat {
|
|||||||
+ " has you on their ignore list.");
|
+ " has you on their ignore list.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
String[] message = applyColors(wordWrap(msg));
|
String[] message = applyColors(wordWrap(msg));
|
||||||
for(String out : message)
|
for(String out : message)
|
||||||
receiver.sendMessage(out);
|
receiver.sendMessage(out);
|
||||||
@ -172,7 +171,7 @@ public class vChat {
|
|||||||
//and their following color codes
|
//and their following color codes
|
||||||
for(int x = 0; x<str.length(); x++)
|
for(int x = 0; x<str.length(); x++)
|
||||||
{
|
{
|
||||||
if(str.charAt(x) == '^' || str.charAt(x) == Colors.White.charAt(0))
|
if((x+1 <= str.length()) && (str.charAt(x) == '^' || str.charAt(x) == Colors.White.charAt(0)))
|
||||||
{
|
{
|
||||||
if(colorChange(str.charAt(x + 1)) != null)
|
if(colorChange(str.charAt(x + 1)) != null)
|
||||||
{
|
{
|
||||||
@ -321,7 +320,7 @@ public class vChat {
|
|||||||
//=====================================================================
|
//=====================================================================
|
||||||
public static String colorChange(char colour)
|
public static String colorChange(char colour)
|
||||||
{
|
{
|
||||||
String color = "";
|
String color;
|
||||||
switch(colour)
|
switch(colour)
|
||||||
{
|
{
|
||||||
case '0':
|
case '0':
|
||||||
|
Loading…
Reference in New Issue
Block a user