From 99d629113953a75357c16b7aef99043d413f252b Mon Sep 17 00:00:00 2001 From: Brianna Date: Tue, 26 May 2020 09:12:18 -0500 Subject: [PATCH 1/2] Added ability to format the text of an entire list. --- Core/src/main/java/com/songoda/core/utils/TextUtils.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Core/src/main/java/com/songoda/core/utils/TextUtils.java b/Core/src/main/java/com/songoda/core/utils/TextUtils.java index 73bcb8ce..60bcb526 100644 --- a/Core/src/main/java/com/songoda/core/utils/TextUtils.java +++ b/Core/src/main/java/com/songoda/core/utils/TextUtils.java @@ -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 formatText(List list) { + return list.stream().map(TextUtils::formatText).collect(Collectors.toList()); + } + + /** * Convert a string to an invisible colored string that's lore-safe
* (Safe to use as lore)
From 651fa5d2cde1709deab37b5f3dcd856023afbc93 Mon Sep 17 00:00:00 2001 From: Brianna Date: Tue, 26 May 2020 09:12:51 -0500 Subject: [PATCH 2/2] version 2.3.37 --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bec52083..52662388 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,7 +4,7 @@ stages: variables: name: "SongodaCore" path: "/builds/$CI_PROJECT_PATH" - version: "2.3.36" + version: "2.3.37" build: stage: build