PotionControl icon

PotionControl 7.10.0

Configure Amplifier/Duration of each PotionType. You can even cancel certain potion!

This plugin allows a server owner to control the amplifier and duration of any potions.  You can even turn off specified potion effect (such as INVISIBILITY).

NOTE: as of v7.5.0, it supports Potions with multiple effects (such as Turtle Master). You can control each potion effect (turning on/off, or change duration/amplifier) in such multi-effect potion.

For example, if you set INCREASE_DAMAGE's amplifier to be 0.5, Strength 2 potion will give you Strength 1 potion effect.

Commands:
 
  • /pctl or /pctl help : displays a help menu
  • /pctl show : Shows the detail of the potion you're currently holding.
  • /pctl reload : Reloads config.yml
  • /pctl set amp: dur: : sets the multiplier of the specified potion type to (amp: Amplifier, dur: Duration).

Permission Node:
  • potioncontrol.reload : allows you to use /pctl reload command.
  • potioncontrol.show : allows you to use /pctl show command.
  • potioncontrol.set : allows you to use /pctl set command.

Installation:
Just drop PotionControl.jar in the plugins folder.

[dropdown=Config.yml]
Messages:
  ErrorMsg : "&c[PotionControl] : Some error occured."
  Cooldown: "&a[PotionControl] You have to wait for &b%remaining% &aseconds."
  CannotThrow: "&c[PotionControl] You do not have a permission to throw %material%!. Ask an admin to give you a permission (%perm%)!"
  NoPlayer: "&c[PotionControl] Player &e%player% &c is not online!"
  NoSuchPot: "&c[PotionControl] No PotionEffect found!"
  CannotUse: "&c[PotionControl] You cannot use it here!"

HelpMessages:
  banner:
    msg: "=== &e[&aPotionControl Commands List (%version%)&e] &r==="
  help:
    msg: "&a/potioncontrol help : displays this help menu."
  reload:
    msg: "&a/potioncontrol reload : reloads config file."
    permission: "potioncontrol.reload"
  debug:
    msg: "&a/potioncontrol debug : turn on / off the debug mode."
    permission: "potioncontrol.debug"
  set:
    msg: "&a/potioncontrol set amp: dur: : sets the multiplier of the specified potion type to (amp: Amplifier, dur: Duration)"
    permission: "potioncontrol.set"
  show:
    msg: "&a/potioncontrol show : Shows the detail of the potion you're currently holding."

# default is LOW, you can have LOWEST, LOW, NORMAL, HIGH, HIGHEST or MONITOR
# adjust these event priority if those event processes from this plugin
# interfere with other plugins' event processes.
EventPriorityMap:
  PotionSplashEvent: "LOWEST"
  PlayerItemConsumeEvent: "MONITOR"
  EntityDamageByEntityEvent: "MONITOR"

#
# availabel potions:
# ABSORPTION           #Increases the maximum health of an entity with health that cannot be regenerated, but is refilled every 30 seconds.
# BLINDNESS            # Blinds an entity.
# CONFUSION            # Warps vision on the client.
# DAMAGE_RESISTANCE    # Decreases damage dealt to an entity.
# FAST_DIGGING         # Increases dig speed.
# FIRE_RESISTANCE      # Stops fire damage.
# HARM                 # Hurts an entity.
# HEAL                 # Heals an entity.
# HEALTH_BOOST         # Increases the maximum health of an entity.
# HUNGER               # Increases hunger.
# INCREASE_DAMAGE      # Increases damage dealt.
# INVISIBILITY         # Grants invisibility.
# JUMP                 # Increases jump height.
# NIGHT_VISION         # Allows an entity to see in the dark.
# POISON               # Deals damage to an entity over time.
# REGENERATION         # Regenerates health.
# SATURATION           # Increases the food level of an entity each tick.
# SLOW                 # Decreases movement speed.
# SLOW_DIGGING         # Decreases dig speed.
# SPEED                # Increases movement speed.
# WATER_BREATHING      # Allows breathing underwater.
# WEAKNESS             # Decreases damage dealt by an entity.
# WITHER               # Deals damage to an entity over time and gives the health to the shooter

#
# If you set the amplifier value to -1 or 0.0, the potion effect will be
# turned off
#
#Multiplier:
#  INCREASE_DAMAGE:
#     Amplifier: 0.5
#     Duration: 0.25
#  INVISIBILITY:
#     Amplifier: -1.0
#     Duration: -1.0
#
Multipliers:
   INVISIBILITY:
     Amplifier: -1.0
     Duration: -1.0
   INCREASE_DAMAGE:
      # amplifier 0.5 will force Strengh2 -> Strength1
     Amplifier: 0.5
     Duration: 1.0
     Worlds:
       - pvp

[/dropdown]