Help for the future of Speechbubbles !

Discussion in 'Plugin Development' started by Kitt3120, May 11, 2014.

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

    Kitt3120

    Hey!

    i'm the developer of Speechbubbles and i need help for the new version. In the config are two options (Maxlength.length and Maxlength.option). i want to cut the message and add "...". But i dont know how. Help me and i will add you on the Bukkit page of speechbubbles :)

    Example:
    Maxlength.length : 10
    Hey i'm Kit...


    I mean Hey i'm Ki...

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 8, 2016
  2. Offline

    qlimax5000

    Not tested:

    message = "hello, my name is qlimax5000"

    Bukkit.broadcastMessage(message.substring(0, 9) + "...");
     
  3. Offline

    hugokk

    qlimax5000
    Code:
    String message = "This is a random message";
    if(message.length > 10)
        message = message.substring(0, 9) + "...";
    And then you can do with it whatever you like
     
Thread Status:
Not open for further replies.

Share This Page