Asynchronous Events Interrupted?

Discussion in 'Plugin Development' started by Coelho, Jan 10, 2013.

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

    Coelho

    Code:
    public class TestPlugin extends JavaPlugin implements Listener {
     
      @Override
      public void onEnable() {
        super.getServer().getPluginManager().registerEvents(this, this);
      }
     
      @EventHandler
      public void onPlayerChat(AsyncPlayerChatEvent event) {
        System.out.println(Thread.currentThread().isInterrupted()); // outputs true;
      }
     
    }
    Why is the thread interrupted? More of, how?
     
Thread Status:
Not open for further replies.

Share This Page