Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-4984

EnchantmentOffer.getCost() documentation/wording is misleading

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
    • Version:
      1.14.1-R0.1-SNAPSHOT
    • Guidelines Read:
      Yes

      Description

      Hey,

      I was searching the minimum level required of an enchantment offer, but it was actually the getter "getCost" documented as Gets the cost in experience levels the player has to pay to enchant his item with this enchantment.

      The value returned is the level required to do the enchantment (what i want), 

      the cost should be 1/2/3 meanwhile it return 6/11/30

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            Kuinox Kuinox
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: