ItemEffects [OPENSOURCE] 1.1

A lightweight plugin allowing an item to contain a potion effect and when clicked, consumed.

  1. jet315
    Tested Minecraft Versions:
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    Source Code:
    https://github.com/Jet315/FreeMinecraftResources/tree/master/ItemEffects
    This plugin provides the ability for Potion Effects, such as Strength, to be put onto an item. When this item is right clicked, the potion effect is applied to the user!

    Features:
    [+] Configurable Messages & Titles
    [+] ALL Minecraft potion effects are supported - https://hub.spigotmc.org/javadocs/b...onEffectType.html#getByName-java.lang.String-
    [+] Commands supported
    [+] API for developers

    Instructions:
    - Place the ItemEffects jar within your /plugins directory
    - Start the server - It will work out the box!
    - Edit the configuration file to match your likings
    - Reload the configuration file by typing /itemeffects reload

    Commands:
    - /itemeffect give <player> <effecttype> <level> (Permission: itemeffect.give)
    - /itemeffect reload (Permission: itemeffect.reload)

    Images:
    [​IMG]
    [​IMG]

    Configuration File:
    Code (Text):
    #
    # Stores the Material that is used to give enchantments on
    # Must be a valud entity:
    # https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html
    #
    EffectItem: CLAY_BALL

    #
    # Stores the times that the effect is given (in seconds) for a particular level
    # (I.E A Strength Level I potion will last 60 seconds)
    #
    TimeForLevel1: 60
    TimeForLevel2: 120
    TimeForLevel3: 180

    #Would you like potion particles to show when they activate an effect?
    ShowParticles: true
    #
    # Messages:
    # Place holders include:
    # %POTIONEFFECT% - Is replaced for the type of effect that is being activated (I.E Strength)
    # %LEVEL% - Is replaced for the potion effects level
    # %DURATION% - The time (in seconds) the effect is present for
    # %PLAYER% - The player's name
    #

    # Whether or not Titles should be used
    UseTitles: true
    # If the above is true, what titles should be displayed?
    MainTitle: "&f&l+ &c%POTIONEFFECT%"
    SubTitle: "&6&m-----------------------"

    #Consume message
    OnEffectTaken: "&6Effects &e&l> &cYou have activated &a%POTIONEFFECT%&c for &a%DURATION% &cseconds!"

    API:
    Use the PlayerConsumeEffectEvent (me.jet315.itemeffects.events) -
    https://github.com/Jet315/FreeMinec...meffects/events/PlayerConsumeEffectEvent.java
    This is called when a player consumes an item

    Any Issues:
    Send me a PM :)

    Thanks - Feel free to leave a review!

Recent Updates

  1. [+] Particle Effects option

Recent Reviews

  1. facundo102
    facundo102
    1/5,
    Version: 1.1
    Dont work in spigot 1.8.8, error console
    03.09 13:10:50 [Server] ERROR Could not pass event PlayerInteractEvent to ItemEffects v1.0
    03.09 13:10:50 [Server] INFO org.bukkit.event.EventException
    03.09 13:10:50 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:310) ~[spigot-1.8.8.jar:git-Spigot-db6de12-18fbb24]
    03.09 13:10:50 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot-1.8.8.jar:git-Spigot-db6de12-18fbb24]
    03.09 13:10:50 [Server] INFO at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot-1.8.8.jar:git-Spigot-db6de12-18fbb24]
    03.09 13:10:50 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot-1.8.8.jar:git-Spigot-db6de12-18fbb24]
    03.09 13:10:50 [Server] INFO at org.bukkit.craftbukkit.v1_8_R3.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:228) [spigot-1.8.8.jar:git-Spigot-db6de12-18fbb24]
    03.09 13:10:50 [Server] INFO at net.minecraft.server.v1_8_R3.PlayerInteractManager.interact(PlayerInteractManager.java:463) [spigot-1.8.8.jar:git-Spigot-db6de12-18fbb24]
    03.09 13:10:50 [Server] INFO at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:759) [spigot-1.8.8.jar:git-Spigot-db6de12-18fbb24]
    03.09 13:10:50 [Server] INFO at net.minecraft.server.v1_8_R3.PacketPlayInBlockPlace.a(PacketPlayInBlockPlace.java:52) [spigot-1.8.8.jar:git-Spigot-db6de12-18fbb24]
    03.09 13:10:50 [Server] INFO at net.minecraft.server.v1_8_R3.PacketPlayInBlockPlace.a(PacketPlayInBlockPlace.java:1) [spigot-1.8.8.jar:git-Spigot-db6de12-18fbb24]
    03.09 13:10:50 [Server] INFO at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [spigot-1.8.8.jar:git-Spigot-db6de12-18fbb24]
    03.09 13:10:50 [Server] INFO at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_181]
    03.09 13:10:50 [Server] INFO at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_181]
    03.09 13:10:50 [Server] INFO at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [spigot-1.8.8.jar:git-Spigot-db6de12-18fbb24]
    03.09 13:10:50 [Server] INFO at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715) [spigot-1.8.8.jar:git-Spigot-db6de12-18fbb24]
    03.09 13:10:50 [Server] INFO at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [spigot-1.8.8.jar:git-Spigot-db6de12-18fbb24]
    03.09 13:10:50 [Server] INFO at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [spigot-1.8.8.jar:git-Spigot-db6de12-18fbb24]
    03.09 13:10:50 [Server] INFO at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [spigot-1.8.8.jar:git-Spigot-db6de12-18fbb24]
    03.09 13:10:50 [Server] INFO at java.lang.Thread.run(Thread.java:748) [?:1.8.0_181]
    03.09 13:10:50 [Server] INFO Caused by: java.lang.NoSuchMethodError: org.bukkit.inventory.PlayerInventory.getItemInMainHand()Lorg/bukkit/inventory/ItemStack;
    03.09 13:10:50 [Server] INFO at me.jet315.itemeffects.listeners.PlayerConsumeListener.onClickEvent(PlayerConsumeListener.java:38) ~[?:?]
    03.09 13:10:50 [Server] INFO at sun.reflect.GeneratedMethodAccessor68.invoke(Unknown Source) ~[?:?]
    03.09 13:10:50 [Server] INFO at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_181]
    03.09 13:10:50 [Server] INFO at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_181]
    03.09 13:10:50 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot-1.8.8.jar:git-Spigot-db6de12-18fbb24]
    03.09 13:10:50 [Server] INFO ... 17 more
    1. jet315
      Author's Response
      Not how you get support.
  2. Polar_Pumpkin
    Polar_Pumpkin
    5/5,
    Version: 1.1
    Nice plugin! Can i translate it to Chinese and redistribute it to a Chinese Minecraft forum MCBBS ( www.mcbbs.net )? I will write the author is you and link this page. :D (Please forgive my English level)
    1. jet315
      Author's Response
      Hey, thanks for the review, yes that is fine :)