Class WIDEYE_POTION

java.lang.Object
net.pottercraft.ollivanders2.potion.O2Potion
net.pottercraft.ollivanders2.potion.WIDEYE_POTION

public class WIDEYE_POTION extends O2Potion
Wideye Potion (Awakening Potion) - grants immunity to sleep effects.

When consumed, this potion applies the AWAKE effect to the player, preventing them from being put to sleep by sleep-inducing potions such as the Sleeping Draught or Draught of Living Death. While the AWAKE effect is active, the player is immune to all sleep-related magical effects and cannot be forced into sleep.

This potion serves as a critical counter to sleeping potions and is essential for survival in situations where sleep effects might be used as an attack or punishment. Players with the AWAKE effect remain fully conscious and able to act.

Since:
2.2.8
  • Constructor Details

    • WIDEYE_POTION

      public WIDEYE_POTION(@NotNull @NotNull Ollivanders2 plugin)
      Constructor for Wideye Potion (Awakening Potion).

      Initializes the potion with its ingredients (Ground Snake Fangs, Billywig Sting Slime, Wolfsbane, and Standard Potion Ingredients), description text, and potion color. Sets up the AWAKE effect that will be applied when the potion is consumed to grant sleep immunity.

      Parameters:
      plugin - a callback to the plugin instance
  • Method Details

    • drink

      public void drink(@NotNull @NotNull org.bukkit.entity.Player player)
      Drink the Wideye Potion and become immune to sleep effects.

      Applies the AWAKE effect to the player for the default potion duration. While this effect is active, the player is completely immune to all sleep-inducing potions and effects, including the Sleeping Draught and Draught of Living Death. The AWAKE effect is a critical defensive tool for countering sleep-based attacks and protecting against magical incapacitation.

      Specified by:
      drink in class O2Potion
      Parameters:
      player - the player who drank the potion