SpongePowered / Sponge

The SpongeAPI implementation targeting vanilla Minecraft and 3rd party platforms.
MIT License
387 stars 211 forks source link

Utilizing Sponge Scheduler without being a SpongePlugin. #1633

Closed Dockter closed 6 years ago

Dockter commented 6 years ago

Hello,

I have a mod that I have made depend on SpongeAPI so that I may utilize the permissions system. I would also like to utilize the scheduler but I have found that the builder .submit requires a plugin object.

Since this mod isn't a true spongeplugin and is simply just depending on SpongeAPI for some of its feature set is there a way I can utilize the scheduler system without making it a full sponge plugin?

Dockter commented 6 years ago

Apparently simply passing in the mod instance works here, TY Meronat.

liach commented 6 years ago

Yeah. Apparently, sponge plugins are just forge mods in SpongeForge.