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

PotionMeta#getCustomEffects always returns an empty list

XMLWordPrintable

    • This server is running CraftBukkit version git-Spigot-ccb012a-4309566 (MC: 1.16.1) (Implementing API version 1.16.1-R0.1-SNAPSHOT)
    • Yes

      The output of PotionMeta#getCustomEffects is always an empty list.

      For example, when running this code while holding a potion of speed or strength:

      player.sendMessage(((PotionMeta) player.getInventory().getItemInMainHand().getItemMeta()).getCustomEffects().toString());
      

      the player receives the following message: 

      []

            Unassigned Unassigned
            robertlit Robert L
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: