Minecraft mini server, which wakes up a real Minecraft server upon receiving connection.
- Make sure you have Bun installed
- Either download the latest release or clone the repository into any directory (i. e. your Minecraft server directory)
- Go to the Nighty Night directory and run
bun ito install all dependencies - Edit
config.tomlto your liking- At the very least you need to check if
launch_settings.server_directory,launch_settings.launch_commandandserver_properties.server_versionhave the right values for you
- At the very least you need to check if
- Launch Nighty Night by running
bun run index.ts
Although it is possible to use Nighty Night in Crafty, it's hacky, so it is recommended to backup Crafty (as it has a tendency to break at the slightest inconveniences) and either backup your Minecraft server or install Nighty Night on a new Minecraft server.
- If you don't have a Minecraft server in Crafty, create one
- Install Bun
- The recommended way is downloading the binary and putting it in
/usr/bin, so that every user in the system can have access to the binary. The official install script installs Bun into~/.bun, so if using that, make sure thatcraftyuser has access to the binary
- The recommended way is downloading the binary and putting it in
- Locate your Minecraft server directory. You can do that in the Config tab of your Minecraft server in Crafty
- Either download the latest release or clone the repository into the Minecraft server directory
- Run
bun ito install all dependencies - Edit
config.toml:launch_settings.server_directorymust be emptylaunch_settings.launch_commandshould use the Server Execution Command value from the Config tabserver_properties.server_versionshould be equal to the Minecraft server version (as long as it's supported by the Nighty Night)
- Edit Server Execution Command value in the Config tab to
*full path to Bun binary*/bun run index.ts
Any installs involving Docker are not supported for the time being.