crwdns119375:0crwdne119375:0

crwdns119377:0:javadoc:crwdnd119377:0:doc:crwdnd119377:0:doc:crwdne119377:0

Tip

crwdns119379:0:doc:crwdne119379:0

crwdns119381:0crwdne119381:0

{
    underlined=true
    color=red
    text="Hello World!"
}

crwdns119383:0crwdne119383:0

import com.google.common.reflect.TypeToken;
import ninja.leaping.configurate.ConfigurationNode;
import org.spongepowered.api.text.Text;
import org.spongepowered.api.text.format.TextColors;
import org.spongepowered.api.text.format.TextStyles;

ConfigurationNode node = loader.load();
Text text = Text.of(TextColors.RED, TextStyles.UNDERLINE, "Hello World!");
node.getNode("mytext").setValue(TypeToken.of(Text.class), text);
loader.save(node);

crwdns119385:0crwdne119385:0

Text text = node.getNode("mytext").getValue(TypeToken.of(Text.class));

Note

crwdns119387:0:javadoc:crwdnd119387:0:javadoc:crwdne119387:0