    001package co.aikar.commands;
    002
    003import org.spongepowered.api.text.Text;
    004import org.spongepowered.api.text.format.TextColor;
    005import org.spongepowered.api.text.serializer.TextSerializers;
    006
    007public class SpongeMessageFormatter extends MessageFormatter<TextColor> {
    008
    009    public SpongeMessageFormatter(TextColor... colors) {
    010        super(colors);
    011    }
    012
    013    public String format(TextColor color, String message) {
    014        return TextSerializers.LEGACY_FORMATTING_CODE.serialize(Text.of(color, message));
    015    }
    016}