Easy Table Formatting? (XML data readable in chat)

Discussion in 'Plugin Development' started by ccrama, Jun 3, 2014.

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

    ccrama

    Hello Bukkit,
    I have run into a dilemma with one of my plugins, ugly formatting. I am returning a list of text items from an xml request, and it comes out into chat like this:

    [​IMG]

    How it looks on WolframAlpha (where I'm getting the info):
    [​IMG]

    Is there any easy way to format text into "stacks" and cubes like shown on the image above?

    This is the returned XML tree: http://api.wolframalpha.com/v2/query?input=minecraft&appid=JP3YKG-WVPQ5PP2H3

    Thanks for the help,
    ccrama

    EDIT: I'm planning on putting it in lore on a chat item, so the max width would have to be pretty small (maybe 20-30 characters long :l)
     
  2. ccrama Try playing around with this, I haven't tried it myself, but it may be the answer.
     
  3. Offline

    ccrama

    DJSkepter Very nice. Just what I needed!
     
Thread Status:
Not open for further replies.

Share This Page