mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-28 19:54:44 +02:00
Fixed a bug where party members didn't have properly colored names, added some optimization and removed some unnecessary API
This commit is contained in:
@ -1,7 +1,5 @@
|
||||
package com.gmail.nossr50.util.text;
|
||||
|
||||
import com.gmail.nossr50.chat.author.Author;
|
||||
import com.gmail.nossr50.datatypes.chat.ChatChannel;
|
||||
import com.gmail.nossr50.mcMMO;
|
||||
import net.kyori.adventure.text.Component;
|
||||
import net.kyori.adventure.text.ComponentBuilder;
|
||||
@ -130,8 +128,4 @@ public class TextUtils {
|
||||
TextComponent componentForm = ofLegacyTextRaw(string);
|
||||
return customLegacySerializer.serialize(componentForm);
|
||||
}
|
||||
|
||||
public static @NotNull String sanitizeAuthorName(@NotNull Author author, @NotNull ChatChannel chatChannel) {
|
||||
return sanitizeForSerializer(author.getAuthoredName(ChatChannel.ADMIN));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user