API BUG SWEEPING_EDGE = NULL

Discussion in 'Spigot Plugin Development' started by mayhem7, May 18, 2017.

  1. Getting SWEEPING_EDGE by name resturns null (using latest spigot):

    Enchantment.getByName("SWEEPING_EDGE") -> Returns NULL

    Any other enchantment is working fine.
     
    • Agree Agree x 1
  2. Choco

    Moderator

    Sweeping edge is the only enchantment in the API whose name does not equate to its constant name. Although the constant is SWEEPING_EDGE, its name is actually just "SWEEPING". Though @MrLetsplay is correct. For all future questions, go to the Spigot Plugin Development forum. (I will report this thread to have it moved)

    EDIT: This was fixed in the 1.12-Pre2 commit:
    https://hub.spigotmc.org/stash/proj...raftbukkit/enchantments/CraftEnchantment.java
     
    • Agree Agree x 1