Development Assistance WorldGuard Flag making help

Discussion in 'Plugin Help/Development/Requests' started by jacobsscoots, Dec 7, 2014.

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

    jacobsscoots

    Im getting this error when I try update/make this flag for world guard.

    Code:
    [14:19:57 ERROR]: Could not load 'plugins\WGFPlayerDamage.jar' in folder 'plugin
    s'
    org.bukkit.plugin.InvalidPluginException: Cannot find main class `de.bangl.wgpdf
    .WGPlayerDamageFlagsPlugin'
            at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.jav
    a:66) ~[craftbukkit.jar:git-Spigot-1642]
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:129) ~[craftbukkit.jar:git-Spigot-1642]
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
    java:341) ~[craftbukkit.jar:git-Spigot-1642]
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:263) [craftbukkit.jar:git-Spigot-1642]
            at org.bukkit.craftbukkit.v1_7_R4.CraftServer.loadPlugins(CraftServer.ja
    va:369) [craftbukkit.jar:git-Spigot-1642]
            at org.bukkit.craftbukkit.v1_7_R4.CraftServer.reload(CraftServer.java:86
    4) [craftbukkit.jar:git-Spigot-1642]
            at org.bukkit.Bukkit.reload(Bukkit.java:301) [craftbukkit.jar:git-Spigot
    -1642]
            at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:
    23) [craftbukkit.jar:git-Spigot-1642]
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:18
    1) [craftbukkit.jar:git-Spigot-1642]
            at org.bukkit.craftbukkit.v1_7_R4.CraftServer.dispatchCommand(CraftServe
    r.java:767) [craftbukkit.jar:git-Spigot-1642]
            at org.bukkit.craftbukkit.v1_7_R4.CraftServer.dispatchServerCommand(Craf
    tServer.java:753) [craftbukkit.jar:git-Spigot-1642]
            at net.minecraft.server.v1_7_R4.DedicatedServer.aB(DedicatedServer.java:
    326) [craftbukkit.jar:git-Spigot-1642]
            at net.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:2
    90) [craftbukkit.jar:git-Spigot-1642]
            at net.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:5
    84) [craftbukkit.jar:git-Spigot-1642]
            at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java
    :490) [craftbukkit.jar:git-Spigot-1642]
            at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:6
    28) [craftbukkit.jar:git-Spigot-1642]
    Caused by: java.lang.ClassNotFoundException: de.bangl.wgpdf.WGPlayerDamageFlagsP
    lugin
            at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.8.0_25]
            at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.8.0_25]
            at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_
    25]
            at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_25]
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:101) ~[craftbukkit.jar:git-Spigot-1642]
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:86) ~[craftbukkit.jar:git-Spigot-1642]
            at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_25]
            at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_25]
            at java.lang.Class.forName0(Native Method) ~[?:1.8.0_25]
            at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_25]
            at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.jav
    a:64) ~[craftbukkit.jar:git-Spigot-1642]
            ... 15 more
    Please could you help me!

    Thanks
    99+
     
  2. Offline

    timtower Moderator Moderator

    Moved to Bukkit alternatives
     
  3. Offline

    jacobsscoots

  4. Offline

    timtower Moderator Moderator

    jacobsscoots 2 options:
    1. Your plugin.yml is pointing to a non-existing class.
    2. You aren't exporting the classes.
     
  5. Offline

    jacobsscoots

    Thanks It works now


    7
     
  6. Offline

    jacobsscoots

    I'm getting this error (on attached image, please help like you did above :()
     

    Attached Files:

  7. Offline

    timtower Moderator Moderator

  8. Offline

    jacobsscoots


    Code:
    07.12 13:16:35 [Server] INFO ... 29 more
    07.12 13:16:35 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301) ~[spigot-1.8-R0.1-SNAPSHOT.jar:git-Spigot-8dc4297-adc129a]
    07.12 13:16:35 [Server] INFO atjava.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_71]
    07.12 13:16:35 [Server] INFO atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_71]
    07.12 13:16:35 [Server] INFO at sun.reflect.GeneratedMethodAccessor83.invoke(Unknown Source) ~[?:?]
    07.12 13:16:35 [Server] INFO at me.jacobsscoots.listener.PlayerDamageListener.onPlayerDamage(PlayerDamageListener.java:25) ~[?:?]
    07.12 13:16:35 [Server] INFO at me.jacobsscoots.main.Utils.dmgAllowedAtLocation(Utils.java:33) ~[?:?]
    07.12 13:16:35 [Server] INFO at com.mewin.util.Util.flagAllowedAtLocation(Util.java:27) ~[?:?]
    07.12 13:16:35 [Server] INFO Caused by: java.lang.IncompatibleClassChangeError: Found interface com.sk89q.worldguard.protection.ApplicableRegionSet, but class was expected
    07.12 13:16:35 [Server] INFO at java.lang.Thread.run(Thread.java:745) [?:1.7.0_71]
    07.12 13:16:35 [Server] INFO at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:526) [spigot-1.8-R0.1-SNAPSHOT.jar:git-Spigot-8dc4297-adc129a]
    07.12 13:16:35 [Server] INFO at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:623) [spigot-1.8-R0.1-SNAPSHOT.jar:git-Spigot-8dc4297-adc129a]
    07.12 13:16:35 [Server] INFO at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:316) [spigot-1.8-R0.1-SNAPSHOT.jar:git-Spigot-8dc4297-adc129a]
    07.12 13:16:35 [Server] INFO at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:683) [spigot-1.8-R0.1-SNAPSHOT.jar:git-Spigot-8dc4297-adc129a]
    07.12 13:16:35 [Server] INFO at java.util.concurrent.FutureTask.run(FutureTask.java:262) [?:1.7.0_71]
    07.12 13:16:35 [Server] INFO at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [?:1.7.0_71]
    07.12 13:16:35 [Server] INFO at net.minecraft.server.v1_8_R1.PacketHandleTask.run(SourceFile:13) [spigot-1.8-R0.1-SNAPSHOT.jar:git-Spigot-8dc4297-adc129a]
    07.12 13:16:35 [Server] INFO at net.minecraft.server.v1_8_R1.PacketPlayInPositionLook.a(SourceFile:18) [spigot-1.8-R0.1-SNAPSHOT.jar:git-Spigot-8dc4297-adc129a]
    07.12 13:16:35 [Server] INFO at net.minecraft.server.v1_8_R1.PacketPlayInFlying.a(SourceFile:126) [spigot-1.8-R0.1-SNAPSHOT.jar:git-Spigot-8dc4297-adc129a]
    07.12 13:16:35 [Server] INFO at net.minecraft.server.v1_8_R1.PlayerConnection.a(PlayerConnection.java:365) [spigot-1.8-R0.1-SNAPSHOT.jar:git-Spigot-8dc4297-adc129a]
    07.12 13:16:35 [Server] INFO at net.minecraft.server.v1_8_R1.EntityPlayer.l(EntityPlayer.java:282) [spigot-1.8-R0.1-SNAPSHOT.jar:git-Spigot-8dc4297-adc129a]
    07.12 13:16:35 [Server] INFO at net.minecraft.server.v1_8_R1.EntityHuman.s_(EntityHuman.java:171) [spigot-1.8-R0.1-SNAPSHOT.jar:git-Spigot-8dc4297-adc129a]
    07.12 13:16:35 [Server] INFO at net.minecraft.server.v1_8_R1.EntityLiving.s_(EntityLiving.java:1397) [spigot-1.8-R0.1-SNAPSHOT.jar:git-Spigot-8dc4297-adc129a]
    07.12 13:16:35 [Server] INFO at net.minecraft.server.v1_8_R1.Entity.s_(Entity.java:244) [spigot-1.8-R0.1-SNAPSHOT.jar:git-Spigot-8dc4297-adc129a]
    07.12 13:16:35 [Server] INFO at net.minecraft.server.v1_8_R1.EntityLiving.K(EntityLiving.java:163) [spigot-1.8-R0.1-SNAPSHOT.jar:git-Spigot-8dc4297-adc129a]
    07.12 13:16:35 [Server] INFO at net.minecraft.server.v1_8_R1.Entity.K(Entity.java:311) [spigot-1.8-R0.1-SNAPSHOT.jar:git-Spigot-8dc4297-adc129a]
    07.12 13:16:35 [Server] INFO at net.minecraft.server.v1_8_R1.EntityPlayer.damageEntity(EntityPlayer.java:486) [spigot-1.8-R0.1-SNAPSHOT.jar:git-Spigot-8dc4297-adc129a]
    07.12 13:16:35 [Server] INFO at net.minecraft.server.v1_8_R1.EntityHuman.damageEntity(EntityHuman.java:799) [spigot-1.8-R0.1-SNAPSHOT.jar:git-Spigot-8dc4297-adc129a]
    07.12 13:16:35 [Server] INFO at net.minecraft.server.v1_8_R1.EntityLiving.damageEntity(EntityLiving.java:705) [spigot-1.8-R0.1-SNAPSHOT.jar:git-Spigot-8dc4297-adc129a]
    07.12 13:16:35 [Server] INFO at net.minecraft.server.v1_8_R1.EntityHuman.d(EntityHuman.java:858) [spigot-1.8-R0.1-SNAPSHOT.jar:git-Spigot-8dc4297-adc129a]
    07.12 13:16:35 [Server] INFO at net.minecraft.server.v1_8_R1.EntityLiving.d(EntityLiving.java:1055) [spigot-1.8-R0.1-SNAPSHOT.jar:git-Spigot-8dc4297-adc129a]
    07.12 13:16:35 [Server] INFO at org.bukkit.craftbukkit.v1_8_R1.event.CraftEventFactory.handleLivingEntityDamageEvent(CraftEventFactory.java:570) [spigot-1.8-R0.1-SNAPSHOT.jar:git-Spigot-8dc4297-adc129a]
    07.12 13:16:35 [Server] INFO at org.bukkit.craftbukkit.v1_8_R1.event.CraftEventFactory.handleEntityDamageEvent(CraftEventFactory.java:524) [spigot-1.8-R0.1-SNAPSHOT.jar:git-Spigot-8dc4297-adc129a]
    07.12 13:16:35 [Server] INFO at org.bukkit.craftbukkit.v1_8_R1.event.CraftEventFactory.callEntityDamageEvent(CraftEventFactory.java:538) [spigot-1.8-R0.1-SNAPSHOT.jar:git-Spigot-8dc4297-adc129a]
    07.12 13:16:35 [Server] INFO at org.bukkit.craftbukkit.v1_8_R1.event.CraftEventFactory.callEvent(CraftEventFactory.java:85) [spigot-1.8-R0.1-SNAPSHOT.jar:git-Spigot-8dc4297-adc129a]
    07.12 13:16:35 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot-1.8-R0.1-SNAPSHOT.jar:git-Spigot-8dc4297-adc129a]
    07.12 13:16:35 [Server] INFO at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot-1.8-R0.1-SNAPSHOT.jar:git-Spigot-8dc4297-adc129a]
    07.12 13:16:35 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot-1.8-R0.1-SNAPSHOT.jar:git-Spigot-8dc4297-adc129a]
    07.12 13:16:35 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:305) ~[spigot-1.8-R0.1-SNAPSHOT.jar:git-Spigot-8dc4297-adc129a]
    07.12 13:16:35 [Server] INFO org.bukkit.event.EventException
    07.12 13:16:35 [Server] INFO [13:16:35 ERROR]: Could not pass event EntityDamageEvent to WGPlayerDamageFlags v0.6
    07.12 13:16:35 [Server] INFO ... 25 more
    this was in the image
    34
     
  9. Offline

    timtower Moderator Moderator

    jacobsscoots Get the latest worldguard in your development environment. Recompile.
     
  10. Offline

    jacobsscoots

    What do you mean by recompile?
     
  11. Offline

    timtower Moderator Moderator

    Export as jar
     
  12. Offline

    jacobsscoots

    I did that and updated it toworldguard1.7.9 anditsnow giving me this:


    Code:
    [21:58:45 ERROR]: Error occurred while enabling WGPlayerDamageFlags v0.6 (Is it
    uptodate?)
    java.lang.NullPointerException
         atcom.mewin.WGCustomFlags.WGCustomFlagsPlugin.getSaveHandler(WGCustomFl
    agsPlugin.java:296) ~[?:?]
         atcom.mewin.WGCustomFlags.WGCustomFlagsPlugin.loadFlagsForWorld(WGCusto
    mFlagsPlugin.java:220) ~[?:?]
         atcom.mewin.WGCustomFlags.WGCustomFlagsPlugin.loadAllWorlds(WGCustomFla
    gsPlugin.java:208) ~[?:?]
         atcom.mewin.WGCustomFlags.FlagManager.addCustomFlag(FlagManager.java:79
    ) ~[?:?]
         atcom.mewin.WGCustomFlags.WGCustomFlagsPlugin.addCustomFlag(WGCustomFla
    gsPlugin.java:273) ~[?:?]
         atme.jacobsscoots.main.WGPlayerDamageFlagsPlugin.onEnable(WGPlayerDamag
    eFlagsPlugin.java:41) ~[?:?]
         atorg.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:316) ~[c
    raftbukkit.jar:git-Spigot-1642]
         atorg.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:332) [craftbukkit.jar:git-Spigot-1642]
         atorg.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:417) [craftbukkit.jar:git-Spigot-1642]
         atorg.bukkit.craftbukkit.v1_7_R4.CraftServer.loadPlugin(CraftServer.jav
    a:476) [craftbukkit.jar:git-Spigot-1642]
         atorg.bukkit.craftbukkit.v1_7_R4.CraftServer.enablePlugins(CraftServer.
    java:394) [craftbukkit.jar:git-Spigot-1642]
         atorg.bukkit.craftbukkit.v1_7_R4.CraftServer.reload(CraftServer.java:86
    6) [craftbukkit.jar:git-Spigot-1642]
         atnet.stormdev.bukkitmods.ultimatepluginupdater.main.UpdateableManager$
    2.run(UpdateableManager.java:535) [UltimatePluginUpdater.jar:?]
         atorg.bukkit.craftbukkit.v1_7_R4.scheduler.CraftTask.run(CraftTask.java
    :71) [craftbukkit.jar:git-Spigot-1642]
         atorg.bukkit.craftbukkit.v1_7_R4.scheduler.CraftScheduler.mainThreadHea
    rtbeat(CraftScheduler.java:350) [craftbukkit.jar:git-Spigot-1642]
         atnet.minecraft.server.v1_7_R4.MinecraftServer.v(MinecraftServer.java:6
    41) [craftbukkit.jar:git-Spigot-1642]
         atnet.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:2
    89) [craftbukkit.jar:git-Spigot-1642]
         atnet.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:5
    84) [craftbukkit.jar:git-Spigot-1642]
         atnet.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java
    :490) [craftbukkit.jar:git-Spigot-1642]
         atnet.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:6
    28) [craftbukkit.jar:git-Spigot-1642]
    Imusing this worldguardversion: http://dev.bukkit.org/bukkit-plugins/worldguard/files/42-world-guard-6-0-beta-2/

    andthelastestspigot version.
    99+
    99+
     
  13. Offline

    timtower Moderator Moderator

  14. Offline

    jacobsscoots

    So would other people get this? How can I fix it?
     
  15. Offline

    timtower Moderator Moderator

    Yes, every developer gets those errors sometimes. And you find what is not initialized correctly.
    That isn't something that we can just say right now. Read the stacktrace, find the line, fix the line, retry
     
  16. Offline

    jacobsscoots

    I'm getting this now http://pastebin.com/AEK8vewT
     
  17. Offline

    timtower Moderator Moderator

    @jacobsscoots There is no "Caused by: " line but I will assume that it is a concurrentmodifierexception. Or something in that direction. It means that you are modifying something that you are looping through.
     
  18. Offline

    jacobsscoots

    How do I fix this? If I send you all the class/code in pastebin could you help me?
     
  19. Offline

    timtower Moderator Moderator

    Maybe, depends on the code.
     
  20. Offline

    jacobsscoots

  21. Offline

    jacobsscoots

    are you able to do it? the code is above
     
  22. Offline

    timtower Moderator Moderator

  23. Offline

    jacobsscoots

    So it could be a plugin clashing with my one?
     
  24. Offline

    timtower Moderator Moderator

    Doubt it, I just don't see in which class the error is located or on which line.
     
  25. Offline

    jacobsscoots

    I got told that its spamming his console every 2 second
     
  26. Offline

    timtower Moderator Moderator

    @jacobsscoots Who is "him"
    And let him provide the entire log.
     
  27. Offline

    jacobsscoots

    Him is a guy I updated the plugin for and I will get now!

    He said the error (in pastebin) I post above was his full console log but I see no "starting server" and also It works on my server with no errors but on his he gets errors?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 29, 2016
  28. Offline

    timtower Moderator Moderator

    @jacobsscoots He only gave the error, let him provide the entire server log.
     
Thread Status:
Not open for further replies.

Share This Page