Getting each letter of someones name

Discussion in 'Plugin Development' started by wowlover6877, Oct 22, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    wowlover6877

    I want to create a command where you type /rainbow, and it turns your name colorful. How would you get each letter of someones name, change each one of it to a different color, then combine it as a string again.
     
  2. Offline

    skore87

    The method you're looking for is on the String datatype using the method split()
     
  3. Offline

    Sagacious_Zed Bukkit Docs

    Strings have a charAt method. which lets you get the character at the index.
     
Thread Status:
Not open for further replies.

Share This Page