Trouble Using EffectLib! Please Help! :(

Discussion in 'Plugin Help/Development/Requests' started by mkezar, Jun 24, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    mkezar

    Hi guys! im trying to spawn a particle shield from Slikeys EffectLib

    If you dont know what EffectLib Is: http://dev.bukkit.org/bukkit-plugins/effectlib/

    Well anyways, i get this major error:

    Show Spoiler

    [18:08:38 ERROR]: Error occurred while enabling MegaWallsKits v1.0 (Is it up to date?)
    java.lang.NoClassDefFoundError: de/slikey/effectlib/EffectLib
    at plugins.mkezar.Kits.onEnable(Kits.java:27) ~[?:?]
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:327) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:404) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at org.bukkit.craftbukkit.v1_8_R1.CraftServer.loadPlugin(CraftServer.java:340) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at org.bukkit.craftbukkit.v1_8_R1.CraftServer.enablePlugins(CraftServer.java:312) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.MinecraftServer.q(MinecraftServer.java:394) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.MinecraftServer.k(MinecraftServer.java:362) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.MinecraftServer.a(MinecraftServer.java:317) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.DedicatedServer.init(DedicatedServer.java:190) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:473) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_31]
    Caused by: java.lang.ClassNotFoundException: de.slikey.effectlib.EffectLib
    at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.8.0_31]
    at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.8.0_31]
    at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_31]
    at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_31]
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:77) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:62) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_31]
    at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_31]
    ... 12 more


    Well anyways, I dont know how to fix it. Here is my code
    Code:
    package plugins.mkezar;
    
    import org.bukkit.Bukkit;
    import org.bukkit.ChatColor;
    import org.bukkit.Sound;
    import org.bukkit.command.Command;
    import org.bukkit.command.CommandSender;
    import org.bukkit.entity.Player;
    import org.bukkit.event.HandlerList;
    import org.bukkit.event.Listener;
    import org.bukkit.plugin.java.JavaPlugin;
    import org.bukkit.util.Vector;
    
    import de.slikey.effectlib.Effect;
    import de.slikey.effectlib.EffectLib;
    import de.slikey.effectlib.EffectManager;
    import de.slikey.effectlib.effect.CircleEffect;
    import de.slikey.effectlib.effect.ShieldEffect;
    import de.slikey.effectlib.effect.ShieldEntityEffect;
    
    public class Kits extends JavaPlugin implements Listener {
        private EffectManager effectManager;
    
        @Override
        public void onEnable() {
             Bukkit.getServer().getPluginManager().registerEvents(this, this);
             EffectLib lib = EffectLib.instance();
                effectManager = new EffectManager(lib);
        
        }
        @Override
        public void onDisable() {
             Bukkit.getServer().getPluginManager().registerEvents(this, this);
             effectManager.dispose();
                HandlerList.unregisterAll((Listener) this);
        
        }
        @Override
        public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) {
            final Player player = (Player)sender;
     
    
            if(commandLabel.equalsIgnoreCase("mwspider")) {
                //onCommand stuff
           
                if(sender instanceof Player) {
               
                     player.getPlayer().setVelocity(player.getPlayer().getLocation().getDirection().multiply(5));
                     player.getPlayer().setVelocity(new Vector(player.getPlayer().getVelocity().getX(), 1.0D, player.getPlayer().getVelocity().getZ()));
               
           
       
                }
                if(commandLabel.equalsIgnoreCase("mwpig")) {
                     ShieldEntityEffect bleedEffect = new ShieldEntityEffect(effectManager, player.getPlayer());
                   
                        bleedEffect.duration = 30;
                        bleedEffect.iterations = 15 * 20;
                        bleedEffect.start();
                }
            }
            return false;
       
        }
    
    
    }
    But to narrow it down: here is where i try to make the particle shield:
    Code:
    if(commandLabel.equalsIgnoreCase("mwpig")) {
                     ShieldEntityEffect bleedEffect = new ShieldEntityEffect(effectManager, player.getPlayer());
                      
                       bleedEffect.duration = 30;
                        bleedEffect.iterations = 15 * 20;
                        bleedEffect.start();
                }
    In that block of code, the
    bleedEffect.duration = 30; doesnt even recognize duration!
    Well i dont know what to do! Please help! :(
     
  2. Offline

    Twisted_Panda

    java.lang.NoClassDefFoundError: de/slikey/effectlib/EffectLib
    EffectLib lib = EffectLib.instance();

    Plugin doesn't exist.
    Should learn to read your error log.
     
  3. Offline

    mkezar

    But I still don't know the problem. The error log says it doesn't exist when it clearly does exist. Am i doing something wrong? Because the demo shows it doing exactly what I'm doing... Let me ponder over it some more...
     
  4. Offline

    CraftBang

    @mkezar add this line in your plugin.yml : depend: [ProtocolLib]
    Are you sure the plugin ProtocolLib is in your plugins folder and it's loaded in the server?
     
  5. Offline

    NathanWolf

    You don't need ProtocolLib, but that's the right idea.

    Code:
    depend: [EffectLib]
    That will make sure that EffectLib is loaded before your plugin, so the class will be available. This is assuming you have the EffectLib plugin in your plugins folder.

    You can also shade in EffectLib, see instructions here:

    http://jenkins.elmakers.com/job/EffectLib/doxygen/
     
  6. Offline

    CraftBang

    @NathanWolf haha sorry, I was in a rush and misread EffectLib as ProtocolLib :p
     
  7. Offline

    mkezar

    @NathanWolf @CraftBang so where would depend: [EffectLib] go in my yml? The very top? Heres my plugin yml
    Code:
    name: MegaWallsKits
    main: plugins.mkezar.Kits
    version: 1.0
    description: Mega Walls kits in HPBT Creative!
    commands:
      mwspider:
         description: Launches you into the air like the Spider kit in Mega Walls!
      mwpig:
         description: Spawns a bubble around you like the Pig kit in Mega Walls!
    now here it is with the depends (if i put it in the right spot correctly)

    Code:
    depend: [EffectLib]
    name: MegaWallsKits
    main: plugins.mkezar.Kits
    version: 1.0
    description: Mega Walls kits in HPBT Creative!
    commands:
      mwspider:
         description: Launches you into the air like the Spider kit in Mega Walls!
      mwpig:
         description: Spawns a bubble around you like the Pig kit in Mega Walls!
    @NathanWolf ok so i got the EffectLib and EffectLibTest. I depended on EffectLib and whenever i tried to run the command nothing happened. then to see if the particles were even working i did it with the EffectLibTest. I looked in the console and got this huge stacktrace.
    Stacktrace (open)

    at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown Source) ~[?:1.8.0_31]
    at sun.reflect.UnsafeObjectFieldAccessorImpl.set(Unknown Source) ~[?:1.8.0_31]
    at java.lang.reflect.Field.set(Unknown Source) ~[?:1.8.0_31]
    at de.slikey.effectlib.util.ParticleEffect.instantiatePacket(ParticleEffect.java:348) ~[?:?]
    ... 11 more
    [15:38:46 WARN]: [EffectLibTest] Task #12 for EffectLibTest v2.5 generated an exception
    de.slikey.effectlib.util.ParticleEffect$PacketInstantiationException: Packet instantiation failed
    at de.slikey.effectlib.util.ParticleEffect.instantiatePacket(ParticleEffect.java:372) ~[?:?]
    at de.slikey.effectlib.util.ParticleEffect.display(ParticleEffect.java:531) ~[?:?]
    at de.slikey.effectlib.util.ParticleEffect.display(ParticleEffect.java:639) ~[?:?]
    at de.slikey.effectlib.effect.ShieldEffect.onRun(ShieldEffect.java:48) ~[?:?]
    at de.slikey.effectlib.Effect.run(Effect.java:126) ~[?:?]
    at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftTask.run(CraftTask.java:53) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:349) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:653) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:284) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:598) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:506) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_31]
    Caused by: java.lang.IllegalArgumentException: Can not set net.minecraft.server.v1_8_R1.EnumParticle field net.minecraft.server.v1_8_R1.PacketPlayOutWorldParticles.a to java.lang.String
    at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown Source) ~[?:1.8.0_31]
    at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown Source) ~[?:1.8.0_31]
    at sun.reflect.UnsafeObjectFieldAccessorImpl.set(Unknown Source) ~[?:1.8.0_31]
    at java.lang.reflect.Field.set(Unknown Source) ~[?:1.8.0_31]
    at de.slikey.effectlib.util.ParticleEffect.instantiatePacket(ParticleEffect.java:348) ~[?:?]
    ... 11 more
    [15:38:46 WARN]: [EffectLibTest] Task #12 for EffectLibTest v2.5 generated an exception
    de.slikey.effectlib.util.ParticleEffect$PacketInstantiationException: Packet instantiation failed
    at de.slikey.effectlib.util.ParticleEffect.instantiatePacket(ParticleEffect.java:372) ~[?:?]
    at de.slikey.effectlib.util.ParticleEffect.display(ParticleEffect.java:531) ~[?:?]
    at de.slikey.effectlib.util.ParticleEffect.display(ParticleEffect.java:639) ~[?:?]
    at de.slikey.effectlib.effect.ShieldEffect.onRun(ShieldEffect.java:48) ~[?:?]
    at de.slikey.effectlib.Effect.run(Effect.java:126) ~[?:?]
    at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftTask.run(CraftTask.java:53) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:349) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:653) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:284) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:598) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:506) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_31]
    Caused by: java.lang.IllegalArgumentException: Can not set net.minecraft.server.v1_8_R1.EnumParticle field net.minecraft.server.v1_8_R1.PacketPlayOutWorldParticles.a to java.lang.String
    at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown Source) ~[?:1.8.0_31]
    at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown Source) ~[?:1.8.0_31]
    at sun.reflect.UnsafeObjectFieldAccessorImpl.set(Unknown Source) ~[?:1.8.0_31]
    at java.lang.reflect.Field.set(Unknown Source) ~[?:1.8.0_31]
    at de.slikey.effectlib.util.ParticleEffect.instantiatePacket(ParticleEffect.java:348) ~[?:?]
    ... 11 more
    [15:38:46 WARN]: [EffectLibTest] Task #12 for EffectLibTest v2.5 generated an exception
    de.slikey.effectlib.util.ParticleEffect$PacketInstantiationException: Packet instantiation failed
    at de.slikey.effectlib.util.ParticleEffect.instantiatePacket(ParticleEffect.java:372) ~[?:?]
    at de.slikey.effectlib.util.ParticleEffect.display(ParticleEffect.java:531) ~[?:?]
    at de.slikey.effectlib.util.ParticleEffect.display(ParticleEffect.java:639) ~[?:?]
    at de.slikey.effectlib.effect.ShieldEffect.onRun(ShieldEffect.java:48) ~[?:?]
    at de.slikey.effectlib.Effect.run(Effect.java:126) ~[?:?]
    at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftTask.run(CraftTask.java:53) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:349) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:653) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:284) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:598) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:506) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_31]
    Caused by: java.lang.IllegalArgumentException: Can not set net.minecraft.server.v1_8_R1.EnumParticle field net.minecraft.server.v1_8_R1.PacketPlayOutWorldParticles.a to java.lang.String
    at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown Source) ~[?:1.8.0_31]
    at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown Source) ~[?:1.8.0_31]
    at sun.reflect.UnsafeObjectFieldAccessorImpl.set(Unknown Source) ~[?:1.8.0_31]
    at java.lang.reflect.Field.set(Unknown Source) ~[?:1.8.0_31]
    at de.slikey.effectlib.util.ParticleEffect.instantiatePacket(ParticleEffect.java:348) ~[?:?]
    ... 11 more
    [15:38:46 WARN]: [EffectLibTest] Task #12 for EffectLibTest v2.5 generated an exception
    de.slikey.effectlib.util.ParticleEffect$PacketInstantiationException: Packet instantiation failed
    at de.slikey.effectlib.util.ParticleEffect.instantiatePacket(ParticleEffect.java:372) ~[?:?]
    at de.slikey.effectlib.util.ParticleEffect.display(ParticleEffect.java:531) ~[?:?]
    at de.slikey.effectlib.util.ParticleEffect.display(ParticleEffect.java:639) ~[?:?]
    at de.slikey.effectlib.effect.ShieldEffect.onRun(ShieldEffect.java:48) ~[?:?]
    at de.slikey.effectlib.Effect.run(Effect.java:126) ~[?:?]
    at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftTask.run(CraftTask.java:53) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:349) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:653) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:284) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:598) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:506) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_31]
    Caused by: java.lang.IllegalArgumentException: Can not set net.minecraft.server.v1_8_R1.EnumParticle field net.minecraft.server.v1_8_R1.PacketPlayOutWorldParticles.a to java.lang.String
    at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown Source) ~[?:1.8.0_31]
    at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown Source) ~[?:1.8.0_31]
    at sun.reflect.UnsafeObjectFieldAccessorImpl.set(Unknown Source) ~[?:1.8.0_31]
    at java.lang.reflect.Field.set(Unknown Source) ~[?:1.8.0_31]
    at de.slikey.effectlib.util.ParticleEffect.instantiatePacket(ParticleEffect.java:348) ~[?:?]
    ... 11 more
    [15:38:46 WARN]: [EffectLibTest] Task #12 for EffectLibTest v2.5 generated an exception
    de.slikey.effectlib.util.ParticleEffect$PacketInstantiationException: Packet instantiation failed
    at de.slikey.effectlib.util.ParticleEffect.instantiatePacket(ParticleEffect.java:372) ~[?:?]
    at de.slikey.effectlib.util.ParticleEffect.display(ParticleEffect.java:531) ~[?:?]
    at de.slikey.effectlib.util.ParticleEffect.display(ParticleEffect.java:639) ~[?:?]
    at de.slikey.effectlib.effect.ShieldEffect.onRun(ShieldEffect.java:48) ~[?:?]
    at de.slikey.effectlib.Effect.run(Effect.java:126) ~[?:?]
    at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftTask.run(CraftTask.java:53) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:349) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:653) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:284) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:598) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:506) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_31]
    Caused by: java.lang.IllegalArgumentException: Can not set net.minecraft.server.v1_8_R1.EnumParticle field net.minecraft.server.v1_8_R1.PacketPlayOutWorldParticles.a to java.lang.String
    at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown Source) ~[?:1.8.0_31]
    at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown Source) ~[?:1.8.0_31]
    at sun.reflect.UnsafeObjectFieldAccessorImpl.set(Unknown Source) ~[?:1.8.0_31]
    at java.lang.reflect.Field.set(Unknown Source) ~[?:1.8.0_31]
    at de.slikey.effectlib.util.ParticleEffect.instantiatePacket(ParticleEffect.java:348) ~[?:?]
    ... 11 more
    [15:38:46 WARN]: [EffectLibTest] Task #12 for EffectLibTest v2.5 generated an exception
    de.slikey.effectlib.util.ParticleEffect$PacketInstantiationException: Packet instantiation failed
    at de.slikey.effectlib.util.ParticleEffect.instantiatePacket(ParticleEffect.java:372) ~[?:?]
    at de.slikey.effectlib.util.ParticleEffect.display(ParticleEffect.java:531) ~[?:?]
    at de.slikey.effectlib.util.ParticleEffect.display(ParticleEffect.java:639) ~[?:?]
    at de.slikey.effectlib.effect.ShieldEffect.onRun(ShieldEffect.java:48) ~[?:?]
    at de.slikey.effectlib.Effect.run(Effect.java:126) ~[?:?]
    at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftTask.run(CraftTask.java:53) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:349) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:653) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:284) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:598) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:506) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_31]
    Caused by: java.lang.IllegalArgumentException: Can not set net.minecraft.server.v1_8_R1.EnumParticle field net.minecraft.server.v1_8_R1.PacketPlayOutWorldParticles.a to java.lang.String
    at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown Source) ~[?:1.8.0_31]
    at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown Source) ~[?:1.8.0_31]
    at sun.reflect.UnsafeObjectFieldAccessorImpl.set(Unknown Source) ~[?:1.8.0_31]
    at java.lang.reflect.Field.set(Unknown Source) ~[?:1.8.0_31]
    at de.slikey.effectlib.util.ParticleEffect.instantiatePacket(ParticleEffect.java:348) ~[?:?]
    ... 11 more
    [15:38:46 WARN]: [EffectLibTest] Task #12 for EffectLibTest v2.5 generated an exception
    de.slikey.effectlib.util.ParticleEffect$PacketInstantiationException: Packet instantiation failed
    at de.slikey.effectlib.util.ParticleEffect.instantiatePacket(ParticleEffect.java:372) ~[?:?]
    at de.slikey.effectlib.util.ParticleEffect.display(ParticleEffect.java:531) ~[?:?]
    at de.slikey.effectlib.util.ParticleEffect.display(ParticleEffect.java:639) ~[?:?]
    at de.slikey.effectlib.effect.ShieldEffect.onRun(ShieldEffect.java:48) ~[?:?]
    at de.slikey.effectlib.Effect.run(Effect.java:126) ~[?:?]
    at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftTask.run(CraftTask.java:53) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:349) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:653) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:284) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:598) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:506) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_31]
    Caused by: java.lang.IllegalArgumentException: Can not set net.minecraft.server.v1_8_R1.EnumParticle field net.minecraft.server.v1_8_R1.PacketPlayOutWorldParticles.a to java.lang.String
    at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown Source) ~[?:1.8.0_31]
    at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown Source) ~[?:1.8.0_31]
    at sun.reflect.UnsafeObjectFieldAccessorImpl.set(Unknown Source) ~[?:1.8.0_31]
    at java.lang.reflect.Field.set(Unknown Source) ~[?:1.8.0_31]
    at de.slikey.effectlib.util.ParticleEffect.instantiatePacket(ParticleEffect.java:348) ~[?:?]
    ... 11 more
    [15:38:46 WARN]: [EffectLibTest] Task #12 for EffectLibTest v2.5 generated an exception
    de.slikey.effectlib.util.ParticleEffect$PacketInstantiationException: Packet instantiation failed
    at de.slikey.effectlib.util.ParticleEffect.instantiatePacket(ParticleEffect.java:372) ~[?:?]
    at de.slikey.effectlib.util.ParticleEffect.display(ParticleEffect.java:531) ~[?:?]
    at de.slikey.effectlib.util.ParticleEffect.display(ParticleEffect.java:639) ~[?:?]
    at de.slikey.effectlib.effect.ShieldEffect.onRun(ShieldEffect.java:48) ~[?:?]
    at de.slikey.effectlib.Effect.run(Effect.java:126) ~[?:?]
    at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftTask.run(CraftTask.java:53) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:349) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:653) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:284) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:598) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:506) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_31]
    Caused by: java.lang.IllegalArgumentException: Can not set net.minecraft.server.v1_8_R1.EnumParticle field net.minecraft.server.v1_8_R1.PacketPlayOutWorldParticles.a to java.lang.String
    at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown Source) ~[?:1.8.0_31]
    at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown Source) ~[?:1.8.0_31]
    at sun.reflect.UnsafeObjectFieldAccessorImpl.set(Unknown Source) ~[?:1.8.0_31]
    at java.lang.reflect.Field.set(Unknown Source) ~[?:1.8.0_31]
    at de.slikey.effectlib.util.ParticleEffect.instantiatePacket(ParticleEffect.java:348) ~[?:?]
    ... 11 more
    [15:38:46 WARN]: [EffectLibTest] Task #12 for EffectLibTest v2.5 generated an exception
    de.slikey.effectlib.util.ParticleEffect$PacketInstantiationException: Packet instantiation failed
    at de.slikey.effectlib.util.ParticleEffect.instantiatePacket(ParticleEffect.java:372) ~[?:?]
    at de.slikey.effectlib.util.ParticleEffect.display(ParticleEffect.java:531) ~[?:?]
    at de.slikey.effectlib.util.ParticleEffect.display(ParticleEffect.java:639) ~[?:?]
    at de.slikey.effectlib.effect.ShieldEffect.onRun(ShieldEffect.java:48) ~[?:?]
    at de.slikey.effectlib.Effect.run(Effect.java:126) ~[?:?]
    at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftTask.run(CraftTask.java:53) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:349) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:653) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:284) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:598) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:506) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_31]
    Caused by: java.lang.IllegalArgumentException: Can not set net.minecraft.server.v1_8_R1.EnumParticle field net.minecraft.server.v1_8_R1.PacketPlayOutWorldParticles.a to java.lang.String
    at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown Source) ~[?:1.8.0_31]
    at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown Source) ~[?:1.8.0_31]
    at sun.reflect.UnsafeObjectFieldAccessorImpl.set(Unknown Source) ~[?:1.8.0_31]
    at java.lang.reflect.Field.set(Unknown Source) ~[?:1.8.0_31]
    at de.slikey.effectlib.util.ParticleEffect.instantiatePacket(ParticleEffect.java:348) ~[?:?]
    ... 11 more
    [15:38:46 WARN]: [EffectLibTest] Task #12 for EffectLibTest v2.5 generated an exception
    de.slikey.effectlib.util.ParticleEffect$PacketInstantiationException: Packet instantiation failed
    at de.slikey.effectlib.util.ParticleEffect.instantiatePacket(ParticleEffect.java:372) ~[?:?]
    at de.slikey.effectlib.util.ParticleEffect.display(ParticleEffect.java:531) ~[?:?]
    at de.slikey.effectlib.util.ParticleEffect.display(ParticleEffect.java:639) ~[?:?]
    at de.slikey.effectlib.effect.ShieldEffect.onRun(ShieldEffect.java:48) ~[?:?]
    at de.slikey.effectlib.Effect.run(Effect.java:126) ~[?:?]
    at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftTask.run(CraftTask.java:53) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:349) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:653) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:284) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:598) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:506) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_31]
    Caused by: java.lang.IllegalArgumentException: Can not set net.minecraft.server.v1_8_R1.EnumParticle field net.minecraft.server.v1_8_R1.PacketPlayOutWorldParticles.a to java.lang.String
    at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown Source) ~[?:1.8.0_31]
    at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown Source) ~[?:1.8.0_31]
    at sun.reflect.UnsafeObjectFieldAccessorImpl.set(Unknown Source) ~[?:1.8.0_31]
    at java.lang.reflect.Field.set(Unknown Source) ~[?:1.8.0_31]
    at de.slikey.effectlib.util.ParticleEffect.instantiatePacket(ParticleEffect.java:348) ~[?:?]
    ... 11 more
    [15:38:46 WARN]: [EffectLibTest] Task #12 for EffectLibTest v2.5 generated an exception
    de.slikey.effectlib.util.ParticleEffect$PacketInstantiationException: Packet instantiation failed
    at de.slikey.effectlib.util.ParticleEffect.instantiatePacket(ParticleEffect.java:372) ~[?:?]
    at de.slikey.effectlib.util.ParticleEffect.display(ParticleEffect.java:531) ~[?:?]
    at de.slikey.effectlib.util.ParticleEffect.display(ParticleEffect.java:639) ~[?:?]
    at de.slikey.effectlib.effect.ShieldEffect.onRun(ShieldEffect.java:48) ~[?:?]
    at de.slikey.effectlib.Effect.run(Effect.java:126) ~[?:?]
    at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftTask.run(CraftTask.java:53) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:349) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:653) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:284) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:598) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:506) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_31]
    Caused by: java.lang.IllegalArgumentException: Can not set net.minecraft.server.v1_8_R1.EnumParticle field net.minecraft.server.v1_8_R1.PacketPlayOutWorldParticles.a to java.lang.String
    at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown Source) ~[?:1.8.0_31]
    at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown Source) ~[?:1.8.0_31]
    at sun.reflect.UnsafeObjectFieldAccessorImpl.set(Unknown Source) ~[?:1.8.0_31]
    at java.lang.reflect.Field.set(Unknown Source) ~[?:1.8.0_31]
    at de.slikey.effectlib.util.ParticleEffect.instantiatePacket(ParticleEffect.java:348) ~[?:?]
    ... 11 more
    [15:38:46 WARN]: [EffectLibTest] Task #12 for EffectLibTest v2.5 generated an exception
    de.slikey.effectlib.util.ParticleEffect$PacketInstantiationException: Packet instantiation failed
    at de.slikey.effectlib.util.ParticleEffect.instantiatePacket(ParticleEffect.java:372) ~[?:?]
    at de.slikey.effectlib.util.ParticleEffect.display(ParticleEffect.java:531) ~[?:?]
    at de.slikey.effectlib.util.ParticleEffect.display(ParticleEffect.java:639) ~[?:?]
    at de.slikey.effectlib.effect.ShieldEffect.onRun(ShieldEffect.java:48) ~[?:?]
    at de.slikey.effectlib.Effect.run(Effect.java:126) ~[?:?]
    at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftTask.run(CraftTask.java:53) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at org.bukkit.craftbukkit.v1_8_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:349) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:653) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:284) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:598) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:506) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_31]
    Caused by: java.lang.IllegalArgumentException: Can not set net.minecraft.server.v1_8_R1.EnumParticle field net.minecraft.server.v1_8_R1.PacketPlayOutWorldParticles.a to java.lang.String
    at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown Source) ~[?:1.8.0_31]
    at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown Source) ~[?:1.8.0_31]
    at sun.reflect.UnsafeObjectFieldAccessorImpl.set(Unknown Source) ~[?:1.8.0_31]
    at java.lang.reflect.Field.set(Unknown Source) ~[?:1.8.0_31]
    at de.slikey.effectlib.util.ParticleEffect.instantiatePacket(ParticleEffect.java:348) ~[?:?]
    ... 11 more


    >


    I really dont know what to do :p and this will keep spamming my console! :p
     
    Last edited by a moderator: Jun 26, 2015
  8. Offline

    Twisted_Panda

    EffectLibTest is probably broken..
     
  9. Offline

    NathanWolf

    That looks like a version mis-match - you're on some form of "CraftBukkit 1.8"? What EffectLib version is that?

    It looks like an issue with the changes to the particle packets from 1.7 to 1.8, though I'm not entirely sure.

    EffectLibTest is your plugin, right? Not like some sample EffectLib plugin? (If so I wasn't aware that existed)
     
  10. Offline

    mkezar

    yeah EffectLibTest is my plugin. but in the zip file came EffectLib too. so i added both to my plugins folder @NathanWolf
     
  11. Offline

    NathanWolf

    What zip file? :|

    Do you know what version of EffectLib you have? You want at least 3.0 - I just released 3.4, 3.3 is probably the latest you can download right now.

    If you have an older version, it probably won't work on 1.8 - check the version compatibility in the Files list:

    http://dev.bukkit.org/bukkit-plugins/effectlib/files/
     
  12. Offline

    mkezar

    i have version 3.2 then i added it to my build path

    The Zip file to download the EffectLibTest! :p
    http://bukkit.org/threads/effectlib-manage-your-effects-the-nice-way-text-image-in-particles.259879/
     
    Last edited by a moderator: Jun 25, 2015
  13. Offline

    NathanWolf

    Oh, lol - ok, that's why I asked if it was your code.

    Yeah, don't use that! I've no idea how old that thread is, but I'm sure that example is out of date.

    Use the 3.2 version that you built with, put that in your plugins folder- the example code might be fine, but if not the example on the devbukkit page is now up to date:

    http://dev.bukkit.org/bukkit-plugins/effectlib/
     
  14. Offline

    mkezar

    ohhh! so when you said put that in your plugins folder i thought u meant the old EffectLib! :p let me try that with the NEW one :p

    Well im slightly dissapointed. So i did the command and it didnt say Unknown Command, It didnt post an error in the stacktrace and it didnt do it :p i tried the other command which worked fine (other command as in the one that had nothing related to EffectLib and just set your velocity). My particles is set to All. I guess its just not summoning the particles :p @NathanWolf

    EDIT: Time to do some debugging to see if the code even reaches those methods. Time to make a println:p
     
    Last edited by a moderator: Jun 25, 2015
  15. Offline

    NathanWolf

    Yeah I honestly don't know about that test plugin at all, it's probably completely outdated. If that's all you're using, I recommend that you take the (very, very simple) example I linked to above and start from there.

    That will attach a Bleed effect to you on join. No commands or anything else to get in the way- if that much works, then at least you know you've got your EffectLib integration working!
     
  16. Offline

    mkezar

    ok so @NathanWolf when i type in the command, its not reaching the methods. i adding a System.out.println() which is not running every time i run the command.

    Whenever i relog i get this Error for Attempting to register My Class v1.0 while not enabled
    Error (open)

    [17:15:27 ERROR]: Error occurred while disabling MegaWallsKits v1.0 (Is it up to date?)
    org.bukkit.plugin.IllegalPluginAccessException: Plugin attempted to register MegaWallsKits v1.0 while not enabled
    at org.bukkit.plugin.SimplePluginManager.registerEvents(SimplePluginManager.java:523) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at plugins.mkezar.Kits.onDisable(Kits.java:34) ~[?:?]
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:323) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:351) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:423) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:416) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at org.bukkit.plugin.SimplePluginManager.clearPlugins(SimplePluginManager.java:457) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at org.bukkit.craftbukkit.v1_8_R1.CraftServer.reload(CraftServer.java:692) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at org.bukkit.Bukkit.reload(Bukkit.java:543) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:23) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:140) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at org.bukkit.craftbukkit.v1_8_R1.CraftServer.dispatchCommand(CraftServer.java:624) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at org.bukkit.craftbukkit.v1_8_R1.CraftServer.dispatchServerCommand(CraftServer.java:610) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.DedicatedServer.aM(DedicatedServer.java:320) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:285) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:598) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:506) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_31]


    alright, ill test it out :p

    Well then... the bleeding does not work. repeat... does not work :p i got this HUGE error.
    Probably The Biggest Error Known To Man (Not Really) (open)

    [17:21:07 ERROR]: Could not pass event PlayerJoinEvent to MegaWallsKits v1.0
    org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:297) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:501) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:486) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.PlayerList.onPlayerJoin(PlayerList.java:249) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.PlayerList.a(PlayerList.java:134) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.LoginListener.b(LoginListener.java:81) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.LoginListener.c(LoginListener.java:41) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.NetworkManager.a(NetworkManager.java:150) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.ServerConnection.c(SourceFile:151) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:718) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:284) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:598) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:506) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_31]
    Caused by: java.lang.NoClassDefFoundError: net/minecraft/util/org/apache/commons/lang3/Validate
    at de.slikey.effectlib.effect.EntityEffect.<init>(EntityEffect.java:16) ~[?:?]
    at de.slikey.effectlib.effect.BleedEntityEffect.<init>(BleedEntityEffect.java:30) ~[?:?]
    at plugins.mkezar.Kits.onPlayerJoin(Kits.java:45) ~[?:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_31]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_31]
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:295) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    ... 14 more
    Caused by: java.lang.ClassNotFoundException: net.minecraft.util.org.apache.commons.lang3.Validate
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:67) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:62) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_31]
    at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_31]
    at de.slikey.effectlib.effect.EntityEffect.<init>(EntityEffect.java:16) ~[?:?]
    at de.slikey.effectlib.effect.BleedEntityEffect.<init>(BleedEntityEffect.java:30) ~[?:?]
    at plugins.mkezar.Kits.onPlayerJoin(Kits.java:45) ~[?:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_31]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_31]
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:295) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    ... 14 more
     
    Last edited by a moderator: Jun 25, 2015
  17. Offline

    NathanWolf

    Umm.. well that's odd. Gimme a minute to see if I can figure out what that's about.
     
  18. Offline

    bwfcwalshy Retired Staff

    @mkezar The class Validate doesn't exist.
     
  19. Offline

    mkezar

    so then its EffectLibs problem. Because i dont have a class named Validate anywhere in my code @bwfcwalshy
     
  20. Offline

    bwfcwalshy Retired Staff

    @mkezar It's actually an MC Apache class

    Caused by: java.lang.NoClassDefFoundError: net/minecraft/util/org/apache/commons/lang3/Validate
     
  21. Offline

    NathanWolf

    Ok- could you please do me a favor and try this build?

    EffectLib-3.4.jar

    I removed the references to Apache Commons classes.

    Honestly I'm not sure what is up with that! :\

    Something weird that Craftbukkit does, like an Overmapped thing?

    I guess it normally was getting Apache commons classes from minecraft itself, though in the EffectLib code it was just referencing it via the normal org.apache.commons package.

    In any case it was only used in a couple of places so I just pulled it out.
     
    Last edited by a moderator: Jun 26, 2015
  22. Offline

    mkezar

    Weird. I still get the same error :( its telling me about Validate again! :p

    I can show you my code, and plugin yml and stacktrace if u want. I can PM u my private localhost plugin testing server if you want to try / see for yourself.
     
  23. Offline

    NathanWolf

    Are you certain you are using 3.4, building against 3.4 and don't have any other versions of EffectLib in your plugins folder?

    I completely removed all references to the Validate class .. so I'd be curious to see a stack trace there.
     
  24. Offline

    mkezar

    completely positive. if you want to see the stacktrace again: here it is. it might be different from the other one but im not sure because i cant read stacktrace that well :p
    Stacktrace (open)

    [17:52:07 ERROR]: Could not pass event PlayerJoinEvent to MegaWallsKits v1.0
    org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:297) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:501) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:486) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.PlayerList.onPlayerJoin(PlayerList.java:249) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.PlayerList.a(PlayerList.java:134) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.LoginListener.b(LoginListener.java:81) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.LoginListener.c(LoginListener.java:41) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.NetworkManager.a(NetworkManager.java:150) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.ServerConnection.c(SourceFile:151) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:718) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:284) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:598) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:506) [craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_31]
    Caused by: java.lang.NoClassDefFoundError: net/minecraft/util/org/apache/commons/lang3/Validate
    at de.slikey.effectlib.effect.EntityEffect.<init>(EntityEffect.java:16) ~[?:?]
    at de.slikey.effectlib.effect.BleedEntityEffect.<init>(BleedEntityEffect.java:30) ~[?:?]
    at plugins.mkezar.Kits.onPlayerJoin(Kits.java:45) ~[?:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_31]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_31]
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:295) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    ... 14 more
    Caused by: java.lang.ClassNotFoundException: net.minecraft.util.org.apache.commons.lang3.Validate
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:67) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:62) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_31]
    at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_31]
    at de.slikey.effectlib.effect.EntityEffect.<init>(EntityEffect.java:16) ~[?:?]
    at de.slikey.effectlib.effect.BleedEntityEffect.<init>(BleedEntityEffect.java:30) ~[?:?]
    at plugins.mkezar.Kits.onPlayerJoin(Kits.java:45) ~[?:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_31]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_31]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_31]
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:295) ~[craftbukkit-1.8-R0.1-SNAPSHOT.jar:git-Bukkit-1092acb]
    ... 14 more
     
  25. Offline

    bwfcwalshy Retired Staff

  26. Offline

    mkezar

    Kits is my class. My Java Project is MegaWallsKits and my class is Kits.
     
  27. Offline

    bwfcwalshy Retired Staff

    @mkezar Yes but what is line 45 in the kits class
     
  28. Offline

    mkezar

    oh! :p that would be
    Code:
     BleedEntityEffect bleedEffect = new BleedEntityEffect(effectManager, event.getPlayer());
    @bwfcwalshy

    EDIT: and that is where the join event is.
     
  29. Offline

    bwfcwalshy Retired Staff

    @mkezar Seems EffectLib uses the Validate class. Make sure your server and EffectLib versions are the same
     
  30. Offline

    NathanWolf

    Well.. You definitely really have an old version of EffectLib, still. Double-check your plugin folder, maybe, I don't know.

    The "EntityEffect" class doesn't even exist anymore and hasn't for a while - and I did just remove those Validate's, though I'm not sure why that has never caused issues with anyone before (is this Cauldron or something weird?)
     
Thread Status:
Not open for further replies.

Share This Page