Java Code Examples for org.apache.commons.lang.StringUtils.left()

The following are Jave code examples for showing how to use left() of the org.apache.commons.lang.StringUtils class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: ProjectAres   File: SidebarMatchModule.java   Source Code and License Vote up 7 votes
public SidebarMatchModule(Match match, BaseComponent title) {
    super(match);
    this.legacyTitle = StringUtils.left(
        ComponentRenderers.toLegacyText(
            new Component(title, ChatColor.AQUA),
            NullCommandSender.INSTANCE
        ),
        32
    );
}