Help with AsyncPlayerChatEvent

Discussion in 'Spigot Plugin Development' started by poncethecat, May 20, 2015.

  1. gone
    #1 poncethecat, May 20, 2015
    Last edited: Jan 11, 2018
  2. Code (Text):
            if(event.getMessage() == code)
    The first line is useless.
    The second line should use .equals () when comparing strings not == :)
  3. Very true I forgot about that. And just to add to that you would schedule a delayed sync task without a delay to run something on the main thread.