Solved See WHENEVER a message appears in chat.

Discussion in 'Plugin Development' started by bowlerguy66, Mar 4, 2016.

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

    bowlerguy66

    I want to make a plugin where it adds a time stamp to every chat message. Even when a plugin uses Bukkit.broadcastMessage().
     
  2. Offline

    teej107

    @bowlerguy66 Kind of impossible unless you modify CB itself. You could use ProtocolLib to intercept messages going to clients but its not guaranteed that the Bukkit.broadcastMessage() was called.
     
  3. Offline

    bowlerguy66

  4. Offline

    teej107

    @bowlerguy66 You could check to see if the same message is going to every player with ProtocolLib. Again, it won't guarantee that the method was called but it'll be the same effect.
     
  5. Offline

    Whoneedspacee

    Couldn't you just intercept the player chat event, get the players name and the message typed, cancel the event, then broadcast that info w/ a timestamp?
     
  6. Offline

    teej107

    @Whoneedspacee This has nothing to do with player's chat. It's sending messages to players; specifically with the broadcastMessage method.
     
  7. Offline

    Whoneedspacee

    Well It seems like he wants to put timestamps next to players messages, so doing what I said would work.
     
  8.  
Thread Status:
Not open for further replies.

Share This Page