public static void triggerCommands() {
    if (INSTANCE.isTriggering) {
      return;
    }

    try {
      INSTANCE.isTriggering = true;

      while (!INSTANCE.repeatingCommands.isEmpty()) {
        executeRepeatingCommand(INSTANCE.repeatingCommands.poll());
      }

      while (!INSTANCE.scheduledCommands.isEmpty()) {
        INSTANCE.scheduledCommands.poll().execute();
      }
    } finally {
      INSTANCE.isTriggering = false;
    }
  }