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:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user