Add hex color support to translations

This commit is contained in:
libraryaddict
2020-06-27 21:01:58 +12:00
parent 5f2ac293bf
commit ffd6536565
70 changed files with 481 additions and 452 deletions

View File

@@ -19,7 +19,7 @@ public class DisguiseCloneTest {
/**
* MetaIndex needs ProtocolLib to have initialized so.
*/
// @Test
// @Test
public void testCloneDisguise() {
try {
ReflectionManager.registerValues();

View File

@@ -16,8 +16,10 @@ public class DisguiseUtilitiesTest {
Assert.assertArrayEquals(new String[]{"Name 1\\", "Name 2"},
DisguiseUtilities.splitNewLine("Name 1\\\nName 2"));
Assert.assertArrayEquals(new String[]{"Name 1\\nName 2"}, DisguiseUtilities.splitNewLine("Name 1\\\\nName 2"));
Assert.assertArrayEquals(new String[]{"Name 1\\","Name 2"}, DisguiseUtilities.splitNewLine("Name 1\\\\\\nName 2"));
Assert.assertArrayEquals(new String[]{"Name 1\\\\nName 2"}, DisguiseUtilities.splitNewLine("Name 1\\\\\\\\nName 2"));
Assert.assertArrayEquals(new String[]{"Name 1\\", "Name 2"},
DisguiseUtilities.splitNewLine("Name 1\\\\\\nName 2"));
Assert.assertArrayEquals(new String[]{"Name 1\\\\nName 2"},
DisguiseUtilities.splitNewLine("Name 1\\\\\\\\nName 2"));
}
@Test