crwdns130143:0crwdne130143:0

crwdns130145:0:javadoc:crwdne130145:0

Tip

crwdns130147:0:doc:crwdne130147:0

crwdns130149:0crwdne130149:0

{
    underlined=true
    color=red
    text="Hello, world!"
}

crwdns130151:0crwdne130151: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);

crwdns130153:0crwdne130153:0

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

Note

crwdns130155:0:javadoc:crwdnd130155:0:javadoc:crwdne130155:0