Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Commit

Permalink
Test Module does not create servers anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
Raft08 committed Jan 13, 2024
1 parent 89ef8eb commit 3c6b002
Showing 1 changed file with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,5 @@ private void onServerStarted(SystemServerStartedEvent event) {
} catch (DatabaseException e) {
throw new RuntimeException(e);
}

TestModule.LOGGER.info("Creating a server...");

try {
FutureAction<NetworkServer> future = event.getServer().getServerManager().create(event.getServer().getServerManager().getServerBlueprints().get(0));
future.syncUninterruptibly();

if (!future.success())
throw new RuntimeException(future.cause());

TestModule.LOGGER.info("Server Created!");
} catch (RemoteServerException e) {
TestModule.LOGGER.error("Could not create new server: {}", e.getMessage());
}
}
}

0 comments on commit 3c6b002

Please sign in to comment.