Getting Error when trying to get plugin container

Hey all, I’m trying to get the plugin container for my plugin so I can use it with chunk loading.
This is the error:

[23:22:57] [Server thread/ERROR] [FML/]: Failed to locate the container for mod instance 
Plugin{id=chunkmanager, name=ChunkManager, version=1.0, description=The Chunk 
Manager Plugin, source=C:\Users\user\Desktop\Sponge Server\mods\ChunkManager-Sponge.jar} (org.spongepowered.mod.plugin.SpongeModPluginContainer : 3c3a1d3)
[23:22:57] [Server thread/ERROR] [mymchunkmanager/]: Error during task completion stage
java.util.NoSuchElementException: No value present

I am using Sponge.getPluginManager().fromInstance(this).get(); to get the plugin container. Yes, it is my @Plugin instance. Anyone know a solution?

If it’s in your plugin class, try using @Inject to get a reference to it

it still gives the same error, it happens when I’m trying to get a chunk loader ticket.
I use: Sponge.getServer().getChunkTicketManager().createTicket(instance.getPluginContainer(),event.getTargetWorld()).get()

Well, you’re not supposed to use the PluginContainer there, you’re just supposed to use the plugin instance.