Jump to content

Recommended Posts

Posted

I had a frustrating issue with buildcraft quarries and mcmmo. Basically any quarry action that would result in potential mcmmo xp created a similar error to this:

2012-09-26 21:26:12 [sEVERE] Could not pass event BlockBreakEvent to mcMMO

java.lang.NullPointerException

    at com.gmail.nossr50.datatypes.PlayerProfile.addXP(PlayerProfile.java:983)

    at com.gmail.nossr50.util.Skills.xpProcessing(Skills.java:496)

    at com.gmail.nossr50.skills.gathering.Herbalism.herbalismProcCheck(Herbalism.java:291)

    at com.gmail.nossr50.listeners.BlockListener.onBlockBreak(BlockListener.java:182)

    at sun.reflect.GeneratedMethodAccessor112.invoke(Unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

    at java.lang.reflect.Method.invoke(Unknown Source)

    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302)

    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)

    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:484)

    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:469)

    at buildcraft.factory.TileQuarry.doWork(TileQuarry.java:193)

    at buildcraft.api.PowerProvider.update(PowerProvider.java:50)

    at buildcraft.core.TileBuildCraft.q_(TileBuildCraft.java:54)

    at buildcraft.factory.TileQuarry.q_(TileQuarry.java:136)

    at net.minecraft.server.World.tickEntities(World.java:1248)

    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:641)

    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:525)

    at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)

2012-09-26 21:26:12 [sEVERE] Could not pass event BlockBreakEvent to mcMMO


 

Turns out the fix is just strange.

 

Firstly I had tried everything

  • blocks.fakeplayerlogin=true (in buildcraft config)
  • op [buildcraft] (works but negates area protection)
  • pex permissions
  • modifyworld removed
None of those worked. So I stripped the server clean and left only tekkit and mcmmo, to no avail. Finally I decided to rename [buildcraft] to [fakebuildcraft] in the buildcraft config. Hey presto error free and quarry still works. for those that are interested here is the general section of build.cfg:

I literally just found this fix, if I find any resulting errors or issues I shall post them here.

####################

# general

####################

 

general {

  # Causes login and join events to be sent for the fake player. This may help some plugins, but will cause errors with others. YMMV.

  blocks.fakeplayerlogin=true

  # Configures the name of the fake player used when blocks.placedby=fakeplayer

  blocks.fakeplayername=[fakebuildcraft]

  # Configures BLOCK_PLACE and BLOCK_BREAK events. Options are 'null' and 'fakeplayer'

  blocks.placedby=fakeplayer

  # set to true for allowing machines to be driven by continuous current

  current.continuous=false

  # If enabled, exploding engines will always be removed, even if the explosion is prevented by a plugin.

  engine.removeonexplode=false

  # set to true to load pre 2.2.5 worlds pipes

  loadLegacyPipes=true

  mining.enabled=true

  # set to false if BuildCraft should not generate custom blocks (e.g. oil)

  modifyWorld=true

  # increasing this number will decrease network update frequency, useful for overloaded servers

  network.updateFactor=10

  # set to false to deactivate pipe connection rules, true by default

  pipes.alwaysConnect=false

  power.framework=buildcraft.energy.PneumaticPowerFramework

  trackNetworkUsage=false

  version=2.2.14

}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...