Change Chat Messages

Discussion in 'Plugin Development' started by bob0310, Sep 2, 2014.

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

    bob0310

    I cannot seem to figure out a way to change chat messages. I want to so you can toggle a command and have your chat be bold. I already got the toggle command, just need help with the changing chat messages.
     
  2. bob0310
    On AsyncPlayerChatEvent, if the toggle is true, use setMessage(ChatColor.BOLD + e.getMessage()).
     
  3. Offline

    bob0310

    Ok will test here in a sec, thank you :)

    Assist

    Can you show me how to use AsyncPlayerChatEvent? I don't fully understand it

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 10, 2016
  4. bob0310
    What part do you not understand? Use it like any other event, and if you don't know how to use events, then you need to go read the big plugin tutorial or watch some videos.
     
  5. Offline

    bob0310

    Assist

    Ok, thats the part I didn't get, thanks.
     
  6. bob0310 Its like every over event but because its Async that means before it has been sent. If you want to learn more about events look on youtube or the Bukkit docs.
     
Thread Status:
Not open for further replies.

Share This Page