Events
Events will be made as libraries and added to code for an X amount of time. It COULD be achieved with extensions, but it would be harder to load everything from them and Extensions are deprecated.
How to create an Event Library:
-
Make a new IntelliJ IDEA project. It needs to use Gradle
-
Add Minestom to dependencies like so (build.gradle.kts):
dependencies {
implementation("net.minestom:minestom-snapshots:commit_version")
}
Make sure commit version is the same as on the main server (See Server.java)
- Modify plugins (From
java to java-library) like so (build.gradle.kts):
plugins {
id("java-library")
}
-
Write the actual code for the event
-
Build the JAR
-
Publish it to the git.andus.dev Maven Repo