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):
    code.equals(code);
            if(event.getMessage() == code)
    The first line is useless.
    The second line should use .equals () when comparing strings not == :)
     
  3. You shouldn't modify the players inventory asynchronously though.
     
    #3 dxdy, May 20, 2015
    Last edited: May 20, 2015
  4. 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.