Provided object is not a plugin instance?

I just updated my Plugin for sponge build 880.
When I start my server, the error occurs.

Any ideas?
Thanks for helping me!

EDIT:
Solution: changed submit(game.getPluginManager().getPlugin("CaveCore").get().getInstance());
to
submit(this);

It’s a plugin’s fault. Post the issue on their thread.

this is my plugin and I don’t know why I get this error occurs :smile:

Could you post the source of the Main.onServerStart() method?

taskBuilder.execute(new Runnable() {
public void run() {
LogBlockManager.sync();
logger.info("LogBlock - Datenbank wurde aktualisiert");
}
}).interval(30, TimeUnit.SECONDS).name("LogBlock Update").submit(game.getPluginManager().getPlugin("CaveCore").get().getInstance());
}

just use the keyword this
i.e.
submit(this);

1 Like

thanks! :smile: I wanted to change this in the past, but never did it, haha :smiley: