Connect Minecraft plugins?

I'm currently learning how to make plugins in Minecraft (Spigot/Maven). I was looking for ways for plugins to interact with each other and came across custom events. It seems that my future core plugin needs to have a dependency for this, which requires a repository. As far as I understand, I need to upload certain files to my web space, for example.

Now to my questions: 1. Did I understand this correctly? 2. Which files do I need to upload and how? 3. Are there any other good ways for two plugins to communicate well with each other?

(1 votes)
Loading...

Similar Posts

Subscribe
Notify of
6 Answers
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
chriss1967
11 months ago

The easiest thing is to have a “core” plugin, which is basically an API. You can simply integrate this into another project as Jar and use the functions.

chriss1967
11 months ago
Reply to  Jeremy Edberg

Sometimes it’s a bit tricky. Google just how you can integrate a local .jar with maven

Floinki
11 months ago

I’m guessing that you’re talking about accessing an API interface.

There are several ways to set another plugin in the pom.xml as dependency. Once a remote repository that is called by placing a web request on a server, the plugin then has been downloaded. For this, you do not necessarily have to have your own server, but can also use services like repsy.

You can also import projects locally, so that the jar file is on the same PC as the project, then you don’t need a server.

Two. Upload your plugin, so your jar file.

But you always have to program an API in your plugin, which is not a task for Java beginners. In general there are enough tutorials in the Spigot/Bukkit forum.

(This is very nice: https://bukkit.org/threads/making-an-api-then-referencing-it-in-another-plugin.1380/

Floinki
11 months ago
Reply to  Jeremy Edberg

Do you think you want to integrate it as Dependecy in another project?