Solved How to get sender.sendMessage() to work with EssentialsChat

Discussion in 'Plugin Development' started by KironDevCoder, Jul 31, 2019.

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

    KironDevCoder

    I'm modifying a plugin for someone but I couldn't get it to not change the chat format. How do I make it still use their chat format like in the screenshot.

    What it should look like:
    [​IMG]

    What it actually looks like
    [​IMG]

    Link to code:
    https://pastebin.com/VPVf2SVk
     
  2. Online

    timtower Administrator Administrator Moderator

  3. Offline

    KironDevCoder

    but like, I need to get a format like {DISPLAYNAME}&7 ➢&f {MESSAGE} (which is the format they're using, but I neither want to need to modify the plugin each time they change it).
     
  4. Online

    timtower Administrator Administrator Moderator

  5. Offline

    KironDevCoder

    Yeah, using the config helped. The person who made the plugin just somehow blocked editing the config with getConfig().get("chatFormat"); so that's why it didn't work the first time. But now it works and I got a position on their server as Dev.
     
  6. Online

    timtower Administrator Administrator Moderator

    You can't block it using that though. Stop the server and you can't block it at all.

    Marked as solved.
     
Thread Status:
Not open for further replies.

Share This Page