@ApiStatus.Internal
  public boolean isInsideCommand() {
    ClientState state = getClientState();
    if (state == null) {
      return false;
    }
    return state.myCommandLevel > 0;
  }
@ApiStatus.Internal
  public boolean isInsideCommand()