1.8.8 Check all chat messages sent by anything

Discussion in 'Spigot Plugin Development' started by Jaccub, Jan 16, 2020.

  1. I would like to be able to check every single message that goes through chat, whether it's sent by a player, command block, the server, or anything else. I would think this has something to do with checking some certain packets, but I'm not 100% sure. I need to see if a string in my plugin matches a string in the chat.

    Code (Text):
    if (Bukkit.getServer().getChat().contains("string example here")) {
            //Do Something