Class STRENGTH


public class STRENGTH extends PotionEffectSuper
STRENGTH effect - increases a player's melee damage.

When applied to a player, this effect increases their melee damage output, making all physical attacks deal significantly more damage. It is a beneficial potion effect that provides a temporary combat boost. The effect uses the Minecraft STRENGTH potion effect with strength level 1.

The effect displays "feels strong" in informous and legilimency spell text, indicating the increased strength provided by this effect.

  • Constructor Details

    • STRENGTH

      public STRENGTH(@NotNull @NotNull Ollivanders2 plugin, int duration, boolean isPermanent, @NotNull @NotNull UUID pid)
      Constructor for STRENGTH effect.

      Initializes the effect with the specified duration and permanent flag. Sets up the effect type as STRENGTH, applies strength level 1, and configures the informous and legilimency spell text to "feels strong".

      Parameters:
      plugin - the plugin instance
      duration - the duration of the effect in server ticks
      isPermanent - whether the effect should be permanent
      pid - the UUID of the player affected by this effect
  • Method Details

    • doRemove

      public void doRemove()
      Clean up the STRENGTH effect when removed.

      Called when the effect is removed from a player. This effect has no special cleanup required beyond the standard effect removal handled by the parent class.

      Specified by:
      doRemove in class O2Effect