From 3cfc4d7bcd3a7ffe3b71da84798f7f52ba77d81c Mon Sep 17 00:00:00 2001 From: Jake Moore Date: Fri, 17 Nov 2023 18:47:32 -0800 Subject: [PATCH] v1.8.3.10 - Support for offline player StringUtilP methods --- pom.xml | 2 +- .../kamikazejamplugins/kamicommon/util/StringUtilP.java | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index 881ed8ad..dfc69c0c 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.kamikazejamplugins kamicommon - 1.8.3.9 + 1.8.3.10 jar KamiCommon diff --git a/src/main/java/com/kamikazejamplugins/kamicommon/util/StringUtilP.java b/src/main/java/com/kamikazejamplugins/kamicommon/util/StringUtilP.java index aa1d259d..6d7b036d 100644 --- a/src/main/java/com/kamikazejamplugins/kamicommon/util/StringUtilP.java +++ b/src/main/java/com/kamikazejamplugins/kamicommon/util/StringUtilP.java @@ -1,7 +1,7 @@ package com.kamikazejamplugins.kamicommon.util; import me.clip.placeholderapi.PlaceholderAPI; -import org.bukkit.entity.Player; +import org.bukkit.OfflinePlayer; import javax.annotation.Nullable; import java.util.ArrayList; @@ -12,16 +12,16 @@ */ @SuppressWarnings("unused") public class StringUtilP extends StringUtil { - public static String p(@Nullable Player player, String s) { + public static String p(@Nullable OfflinePlayer player, String s) { s = PlaceholderAPI.setPlaceholders(player, s); return t(s); } - public static List p(@Nullable Player player, List msg) { + public static List p(@Nullable OfflinePlayer player, List msg) { return p(player, msg.toArray(new String[0])); } - public static List p(@Nullable Player player, String... msg) { + public static List p(@Nullable OfflinePlayer player, String... msg) { List strings = new ArrayList<>(); for (String s : msg) { strings.add(p(player, s));