Get player input?

Discussion in 'BungeeCord Plugin Development' started by Mhalllz, Jun 4, 2018.

  1. How would i get what a player says in chat?
     
  2. You can use the ChatEvent
     
  3. This is BungeeCord Plugin Development
     
  4. Example

    Code (Java):
    @EventHandler (priority = EventPriority.HIGHEST)
        public void onChat(ChatEvent event)
            {
            String message = event.getMessage();
                    // do stuff
        }