Skip to content

Commit

Permalink
v1.8.3.10
Browse files Browse the repository at this point in the history
- Support for offline player StringUtilP methods
  • Loading branch information
Jake-Moore committed Nov 18, 2023
1 parent 74135ec commit 3cfc4d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>com.kamikazejamplugins</groupId>
<artifactId>kamicommon</artifactId>
<version>1.8.3.9</version>
<version>1.8.3.10</version>
<packaging>jar</packaging>

<name>KamiCommon</name>
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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<String> p(@Nullable Player player, List<String> msg) {
public static List<String> p(@Nullable OfflinePlayer player, List<String> msg) {
return p(player, msg.toArray(new String[0]));
}

public static List<String> p(@Nullable Player player, String... msg) {
public static List<String> p(@Nullable OfflinePlayer player, String... msg) {
List<String> strings = new ArrayList<>();
for (String s : msg) {
strings.add(p(player, s));
Expand Down

0 comments on commit 3cfc4d7

Please sign in to comment.