9
0
mirror of https://github.com/HibiscusMC/HibiscusCommons.git synced 2025-12-31 04:46:37 +00:00

clean: condense processPlaceholders code

This commit is contained in:
LoJoSho
2024-03-18 14:52:52 -05:00
parent 42e0c8c18c
commit 833d87afc5

View File

@@ -63,8 +63,7 @@ public class Hooks {
*/
@NotNull
public static String processPlaceholders(@NotNull OfflinePlayer player, @NotNull String raw) {
if (isActiveHook("PlaceholderAPI")) return PlaceholderAPI.setPlaceholders(player, raw);
return raw;
return isActiveHook("PlaceholderAPI") ? PlaceholderAPI.setPlaceholders(player, raw) : raw;
}
/**