mirror of
https://github.com/songoda/SongodaCore.git
synced 2024-11-24 02:56:17 +01:00
Merge branch 'development'
This commit is contained in:
commit
f510ab4210
@ -4,7 +4,7 @@ stages:
|
||||
variables:
|
||||
name: "SongodaCore"
|
||||
path: "/builds/$CI_PROJECT_PATH"
|
||||
version: "2.3.36"
|
||||
version: "2.3.37"
|
||||
|
||||
build:
|
||||
stage: build
|
||||
|
@ -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 />
|
||||
|
Loading…
Reference in New Issue
Block a user