JSPrismarine
    Preparing search index...
    • Get Gametype from name.

      Parameters

      • mode: string | number

        The Gametype to get the ID of.

      Returns Gametype

      The Gametype ID.

      Thrown if the Gametype is invalid.

      const gametype = getGametypeId('survival');
      console.log(gametype); // 0