Example #1
0
  /** Runs the event and stops itself from running again */
  public void run() {
    super.matchRunning = false;

    final Thread t =
        new Thread(
            new Runnable() {
              public void run() {
                try {
                  quest.handleAction(action, args, owner);
                } catch (java.util.ConcurrentModificationException cme) {
                } catch (Exception e) {
                  e.printStackTrace();
                }
              }
            },
            new String("qt-" + getIdentifier()));

    quest.setThread(t);
    t.start();
  }