How to get the directory where Sponge plugins are?

Hello, I am trying to figure out a way to get the directory that Sponge plugins are kept in. For instance, the default directory when using SpongeForge is /mods. Is there any way I can retrieve this directory, or do I have to add a configuration file to my plugin which asks the server administrator for the directory?

Thanks!

You can try yourPluginContainer.getSource().getParent(). Be aware that this won’t work in development mode.