最近白嫖了一个1h1g的服务器,想拿它来开mc服务器,正当我用mcsmanager开服的时候,突然给我报了一条OutOfMemoryError
下面就给大家介绍一下Cubreite
Cuberite
Cuberite is a Minecraft-compatible multiplayer game server that is written in C++ and designed to be efficient with memory and CPU, as well as having a flexible Lua Plugin API. Cuberite is compatible with the Java Edition Minecraft client.
Cuberite runs on Windows, *nix and Android operating systems. This includes Android phones and tablets as well as Raspberry Pis; support for small embedded devices is experimental.
Currently we support Release 1.8 - 1.12.2 Minecraft protocol versions.
总的来说,这是一个开源、多版本、高性能、跨平台的mc服务器
安装
我使用的是Ubuntu 22.04 x64的版本,使用以下一键安装脚本:
curl -sSfL https://download.cuberite.org | sh
启动
输入./Cuberite
居然只用了10秒多,就完成了整个包括生成主世界、地狱、末地的启动过程,不得不惊叹C++性能的强悍,Java的臃肿
关闭正版验证
vi settings.ini
找到第一项[Authentication]
的第一行Authenticate=1
把1改成0
输入冒号:和wq保存
重新启动
./Cuberite
生成完世界后,启动时间就已经缩短到了将近2秒!
进入服务器
直接连接 -> 服务器ip:25565 -> 加入服务器
为什么我的出生点在海上