BlockBreakEvent

Discussion in 'Plugin Development' started by Thisnamewilldo, Jan 28, 2013.

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

    Thisnamewilldo

    Hello, I have a custom plugin which spawns an item every few minutes. When people create the spawners it gets stored in a file like this:


    Spawner-Amount: 33
    Spawner-List:
    - 1
    VIP-Spawner-List:
    - 8

    SpawnerData-Version: 1
    '1':
    world: world
    x: -1326
    y: 64
    z: -2956
    amount-spawned: 0
    owner: namehere

    The plugin works fine, but then all of a sudden the following error starts happening and doesn't stop (looks like it's when someone tries to break the spawner?):

    28.01 22:49:11 [Server] INFO at net.minecraft.server.v1_4_R1.Packet14BlockDig.handle(SourceFile:46)
    28.01 22:49:11 [Server] INFO at net.minecraft.server.v1_4_R1.PlayerConnection.a(PlayerConnection.java:566)
    28.01 22:49:11 [Server] INFO at net.minecraft.server.v1_4_R1.PlayerInteractManager.a(PlayerInteractManager.java:209)
    28.01 22:49:11 [Server] INFO at net.minecraft.server.v1_4_R1.PlayerInteractManager.breakBlock(PlayerInteractManager.java:282)
    28.01 22:49:11 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
    28.01 22:49:11 [Server] INFO at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
    28.01 22:49:11 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    28.01 22:49:11 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427)
    28.01 22:49:11 [Server] INFO org.bukkit.event.EventException
    28.01 22:49:11 [Server] SEVERE Could not pass event BlockBreakEvent to Plugin 1.3

    This then crashes the server and I have to delete the spawnerdata.yml file to fix the plugin but then everyone has to make their spawners again. Could anyone inform me on how I could fix this or even fix it for me if it's hard? I think it's since a Bukkit update.

    Thanks!
     
  2. Offline

    raGan.

    Is this full stacktrace ?
     
  3. Offline

    Thisnamewilldo

    Sorry I don't know what this means, I'm not a plugin developer I had this plugin made for me. Is anyone able to come up with a fix please? It's a really important plugin!
     
  4. Offline

    raGan.

    Then contact the one who made it and make him fix it.
     
  5. Offline

    Thisnamewilldo

    I have obviously tried this but he says he has no time.
     
  6. Offline

    Thisnamewilldo

    Could someone please help me out here? I will pay if I have to.
     
  7. Thisnamewilldo
    Copy the full stack trace, so pretty much everything that looks foreign to you ;).

    If the developer who made it has a github you could pull the source from there else if you can host the jar file somewhere I could take a stab at decompiling it and copying the code into a new plugin and trying to fix it for you.
     
  8. Offline

    Thisnamewilldo

    31.01 04:13:24 [Server] INFO ... 16 more
    31.01 04:13:24 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
    31.01 04:13:24 [Server] INFO at java.lang.reflect.Method.invoke(Method.java:601)
    31.01 04:13:24 [Server] INFO at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    31.01 04:13:24 [Server] INFO at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    31.01 04:13:24 [Server] INFO at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    31.01 04:13:24 [Server] INFO at me.lol.Plugin.PluginListener.BlockBreakListener(PluginListener.java:166)
    31.01 04:13:24 [Server] INFO at org.bukkit.craftbukkit.v1_4_R1.CraftServer.getWorld(CraftServer.java:808)
    31.01 04:13:24 [Server] INFO Caused by: java.lang.NullPointerException
    31.01 04:13:24 [Server] INFO at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile:849)
    31.01 04:13:24 [Server] INFO at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java:427)
    31.01 04:13:24 [Server] INFO at net.minecraft.server.v1_4_R1.MinecraftServer.q(MinecraftServer.java:494)
    31.01 04:13:24 [Server] INFO at net.minecraft.server.v1_4_R1.DedicatedServer.r(DedicatedServer.java:224)
    31.01 04:13:24 [Server] INFO at net.minecraft.server.v1_4_R1.MinecraftServer.r(MinecraftServer.java:598)
    31.01 04:13:24 [Server] INFO at net.minecraft.server.v1_4_R1.DedicatedServerConnection.b(SourceFile:30)
    31.01 04:13:24 [Server] INFO at net.minecraft.server.v1_4_R1.ServerConnection.b(SourceFile:39)
    31.01 04:13:24 [Server] INFO at net.minecraft.server.v1_4_R1.PlayerConnection.d(PlayerConnection.java:112)
    31.01 04:13:24 [Server] INFO at net.minecraft.server.v1_4_R1.NetworkManager.b(NetworkManager.java:290)
    31.01 04:13:24 [Server] INFO at net.minecraft.server.v1_4_R1.Packet14BlockDig.handle(SourceFile:46)
    31.01 04:13:24 [Server] INFO at net.minecraft.server.v1_4_R1.PlayerConnection.a(PlayerConnection.java:563)
    31.01 04:13:24 [Server] INFO at net.minecraft.server.v1_4_R1.PlayerInteractManager.dig(PlayerInteractManager.java:181)
    31.01 04:13:24 [Server] INFO at net.minecraft.server.v1_4_R1.PlayerInteractManager.breakBlock(PlayerInteractManager.java:282)
    31.01 04:13:24 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
    31.01 04:13:24 [Server] INFO at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
    31.01 04:13:24 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    31.01 04:13:24 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427)
    31.01 04:13:24 [Server] INFO org.bukkit.event.EventException
    31.01 04:13:24 [Server] SEVERE Could not pass event BlockBreakEvent to Plugin v1.3
    31.01 04:13:24 [Multicraft] Skipped 26 lines due to rate limit (30/s)
    31.01 04:13:23 [Server] INFO org.bukkit.event.EventException
    31.01 04:13:23 [Server] SEVERE Could not pass event BlockBreakEvent to Plugin v1.3
     
  9. Offline

    caseif

    Github or JAR?
     
  10. Offline

    Thisnamewilldo

    I have the whole source for the plugin.
     
  11. Offline

    caseif

    Well then, where is it?
     
  12. Offline

    Shevchik

    As far i can see the plugin tries to acess unexisted methods or classes using reflections.
    So you should ask this plugin developer to update the plugin to new version of craftbukkit.(or post source here, maybe someone will update it for you)
     
  13. Offline

    Thisnamewilldo

    I still need this fixed, if you can fix it please PM me. I can't post the source here as it's not a public plugin.
     
Thread Status:
Not open for further replies.

Share This Page