Fix Unions-OG prefixes

This commit is contained in:
NotAlexNoyle committed 2026-05-04 15:18:21 -04:00
1 parent f089f4692f
commit 4db8042cf6
4 files changed
+10 -10

No files matched your search

+1
View File
@@ -5,3 +5,4 @@ NotAlexNoyle 05/04/26:
- Migrate vanish detection from the Essentials API to the Vanish-OG API surface.
- Append ` &7> ` separator in chat formatting so the trailing `>` can
be removed from LuckPerms suffixes.
- Fix Unions-OG prefix support.
+3 -2
View File
@@ -191,8 +191,9 @@ internal class Events : Listener {
var nameString = "${PlayerAffix.getPrefix(event.player.uniqueId)}${event.player.name}"
if (PlaceholderAPI.setPlaceholders(event.player, "%simpleclans_union_color_tag%") != "") {
nameString = PlaceholderAPI.setPlaceholders(event.player, "&8[%simpleclans_union_color_tag%&8] $nameString")
val unionColorTag = PlaceholderAPI.setPlaceholders(event.player, "%simpleclans_union_color_tag%")
if (unionColorTag.isNotEmpty() && unionColorTag != "None") {
nameString = "&8[$unionColorTag&8] $nameString"
}
val nameComponent = UtilitiesOG.trueogColorize(legacyToMm(nameString))
@@ -142,12 +142,9 @@ internal class TranslateMessage : CommandExecutor {
"${PlayerAffix.getPrefix(sentChatMessage.player.uniqueId)}${sentChatMessage.player.name} ${
PlayerAffix.getSuffix(sentChatMessage.player.uniqueId)
}"
if (PlaceholderAPI.setPlaceholders(sentMessage.player, "%simpleclans_clan_color_tag%") != "") {
playerString =
PlaceholderAPI.setPlaceholders(
sentMessage.player,
"&8[%simpleclans_clan_color_tag%&8] $playerString",
)
val clanColorTag = PlaceholderAPI.setPlaceholders(sentMessage.player, "%simpleclans_clan_color_tag%")
if (clanColorTag.isNotEmpty() && clanColorTag != "None") {
playerString = "&8[$clanColorTag&8] $playerString"
}
val playerComponent =
UtilitiesOG.trueogColorize(
@@ -29,8 +29,9 @@ internal object ChatUtil {
fun getPlayerPartString(player: Player): String {
var playerPart = "${PlayerAffix.getPrefix(player.uniqueId)}${player.name}"
if (PlaceholderAPI.setPlaceholders(player, "%simpleclans_clan_color_tag%") != "") {
playerPart = PlaceholderAPI.setPlaceholders(player, "&8[%simpleclans_clan_color_tag%&8] $playerPart")
val clanColorTag = PlaceholderAPI.setPlaceholders(player, "%simpleclans_clan_color_tag%")
if (clanColorTag.isNotEmpty() && clanColorTag != "None") {
playerPart = "&8[$clanColorTag&8] $playerPart"
}
return playerPart