Truly fixes parsing of &# color tags
This commit is contained in:
		@@ -85,11 +85,7 @@ public final class ColorHelper {
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
        Matcher matcher = pattern.matcher(message);
 | 
					        Matcher matcher = pattern.matcher(message);
 | 
				
			||||||
        while (matcher.find()) {
 | 
					        while (matcher.find()) {
 | 
				
			||||||
            try {
 | 
					            message = message.replace(matcher.group(), "" + ChatColor.of(matcher.group(1)));
 | 
				
			||||||
                message = message.replace(matcher.group(), "" + ChatColor.of(matcher.group()));
 | 
					 | 
				
			||||||
            } catch (IllegalArgumentException ignored) {
 | 
					 | 
				
			||||||
                //Something was matched that wasn't a proper color after all. Ignore it.
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        return message;
 | 
					        return message;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user