Merge branch 'development'

This commit is contained in:
Brianna 2020-05-26 09:13:00 -05:00
commit f510ab4210
2 changed files with 8 additions and 1 deletions

View File

@ -4,7 +4,7 @@ stages:
variables:
name: "SongodaCore"
path: "/builds/$CI_PROJECT_PATH"
version: "2.3.36"
version: "2.3.37"
build:
stage: build

View File

@ -10,6 +10,8 @@ import java.nio.charset.CharsetDecoder;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import org.bukkit.ChatColor;
public class TextUtils {
@ -26,6 +28,11 @@ public class TextUtils {
return ChatColor.translateAlternateColorCodes('&', text);
}
public static List<String> formatText(List<String> list) {
return list.stream().map(TextUtils::formatText).collect(Collectors.toList());
}
/**
* Convert a string to an invisible colored string that's lore-safe <br />
* (Safe to use as lore) <br />