Solved Chatevent not working with other plugins

Discussion in 'Plugin Development' started by Zxoir, Jan 29, 2020.

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

    Zxoir

    Hello, I noticed when I tried to make a ping player plugin that if you have 2 plugins that use Player Chat Event then only one will work. I was wondering if there was a work-around this?
     
  2. Offline

    timtower Administrator Administrator Moderator

    @Zxoir It depends on how the plugins have their things handled.
    How did you test this?
     
  3. Offline

    Zxoir

    I had 1 plugin in my local host that changed the chat format, then I added the ping player plugin which sets and changes the message (basically adds color) and it wouldn't work until I removed my other plugin.
     
  4. Offline

    timtower Administrator Administrator Moderator

    Is the first one changing the message as well?
     
  5. Offline

    Zxoir

    No just the format
     
  6. Offline

    timtower Administrator Administrator Moderator

    Then it should work just fine.
     
  7. Offline

    Zxoir

    Didn't work for me tho
     
  8. Offline

    timtower Administrator Administrator Moderator

    Could you post the code for both (if you have both)
     
  9. Offline

    Zxoir

    It's a core plugin, but sure i'll send both classes when i'm home.

    Edit: Figured it out, credits to EpicGodMC for telling me how to fix it. Just had to make the priority on highest.
     
    Last edited: Jan 30, 2020
Thread Status:
Not open for further replies.

Share This Page