Skip to content

Commit

Permalink
Re-add extension support
Browse files Browse the repository at this point in the history
BasicMinestomServer exists to let server owners defer all custom behaviour to extensions. However, this use-case is no longer supported by Minestom as it doesn't fit within the scope of being a Minecraft server-engine library. Saddage. Luckily, Hollow Cube is maintaining a 'fork' of sorts of the extension loading code to *mostly* seamlessly re-add support for extensions.
  • Loading branch information
Protonull committed Apr 30, 2024
1 parent ac3faed commit 542c9ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ repositories {

dependencies {
implementation("net.minestom:minestom:dev")
implementation("dev.hollowcube:minestom-ce-extensions:1.2.0")
}

java {
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/uk/protonull/minestom/Server.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package uk.protonull.minestom;

import net.hollowcube.minestom.extensions.ExtensionBootstrap;
import net.minestom.server.MinecraftServer;

public final class Server {
Expand All @@ -8,7 +9,7 @@ public static void main(final String[] args) {
final String host;
final int port;
try {
MinecraftServer.init().start(
ExtensionBootstrap.init().start(
host = getHost(),
port = getPort()
);
Expand Down

0 comments on commit 542c9ce

Please sign in to comment.