Detecting chat events/storing them

Discussion in 'Plugin Development' started by n0nh0l, Sep 15, 2019.

  1. Offline

    n0nh0l

    I am trying to figure out how I can store or repeat player chats to make an in-game message react system.


    Example:


    <Player 1>: message

    [Like] [Dislike] <-----(You would click one of these)


    <Player 2>: Liked "message"


    Any idea of how I could do this?
     
  2. Offline

    Kars

    Catch player chat event, store the message.
    Upon some command i guess? Replay them.
     
  3. Offline

    DerDonut

    @n0nh0l since the thread isn't marked as solved yet here is another idea:
    Create a command for like / dislike and execute them when clicking on the chat buttons. You can already pass the command arguments (in that case the message) when sending the [Like] [Dislike] so you don't even have to save them
     

Share This Page