1
0
Fork 0
Personal fork of Cuberite
Go to file
Tiger Wang 054a89dd9e Clarify cClientHandle, cPlayer ownership semantics
+ A cPlayer, once created, has a strong pointer to the cClientHandle. The player ticks the clienthandle. If he finds the handle destroyed, he destroys himself in turn. Nothing else can kill the player.
* The client handle has a pointer to the player. Once a player is created, the client handle never outlasts the player, nor does it manage the player's lifetime. The pointer is always safe to use after FinishAuthenticate, which is also the point where cProtocol is put into the Game state that allows player manipulation.
+ Entities are once again never lost by constructing a chunk when they try to move into one that doesn't exist.
* Fixed a forgotten Super invocation in cPlayer::OnRemoveFromWorld.
* Fix SaveToDisk usage in destructor by only saving things cPlayer owns, instead of accessing cWorld.
2021-01-12 12:34:34 +00:00
.circleci Enable some more clang-tidy linter checks (#4738) 2020-05-14 22:15:35 +00:00
.github Update issue templates (#4960) 2020-10-01 23:20:10 +00:00
CMake zlib -> libdeflate (#5085) 2021-01-11 16:39:43 +00:00
Server zlib -> libdeflate (#5085) 2021-01-11 16:39:43 +00:00
Tools zlib -> libdeflate (#5085) 2021-01-11 16:39:43 +00:00
android Fix Android builds (#4998) 2020-10-15 09:35:44 +00:00
dev-docs dev-docs/Plugin API.md: fix url 2020-01-12 11:31:01 +00:00
lib zlib -> libdeflate (#5085) 2021-01-11 16:39:43 +00:00
src Clarify cClientHandle, cPlayer ownership semantics 2021-01-12 12:34:34 +00:00
tests zlib -> libdeflate (#5085) 2021-01-11 16:39:43 +00:00
.clang-format Enable some more clang-tidy linter checks (#4738) 2020-05-14 22:15:35 +00:00
.clang-tidy Enable some more clang-tidy linter checks (#4738) 2020-05-14 22:15:35 +00:00
.editorconfig .editorconfig fixes (#4113) 2017-12-26 21:14:37 +00:00
.gitattributes Added unit test for parsing HTTP request. 2016-03-01 16:19:57 +01:00
.gitignore Fixed switch-ups regarding some slab and stair recipes (#5099) 2021-01-05 02:14:53 +00:00
.gitmodules zlib -> libdeflate (#5085) 2021-01-11 16:39:43 +00:00
.travis.yml Revert travis changes 2020-09-30 22:05:17 +01:00
BACKERS Remove BountySource from funding sources 2020-08-10 20:16:02 +01:00
CMakeLists.txt Fix version typo in CMakeLists.txt (#5098) 2021-01-02 11:35:40 +00:00
COMPILING.md Add documentation for @tigerw's new CMake flags (#4814) 2020-08-06 16:13:47 +00:00
CONTRIBUTING.md Upgrade to C++17 [CI] (#4716) 2020-05-09 13:56:39 +00:00
CONTRIBUTORS Add coloured glass pane recipes (#5032) 2020-11-15 16:45:02 +00:00
CheckLua.cmake Use system Lua, if available, to generate bindings. 2016-07-18 22:11:41 +02:00
Doxyfile Stop cFunctionRef constructor from disabling default copy constructor. (#4173) 2018-07-24 22:30:05 +01:00
GETTING-STARTED.md Upgrade to C++17 [CI] (#4716) 2020-05-09 13:56:39 +00:00
LICENSE Update copyright year 2020-02-26 22:27:09 +02:00
README.md Remove BountySource from funding sources 2020-08-10 20:16:02 +01:00
SetFlags.cmake Warnings improvements 2020-12-18 21:03:40 +00:00
TESTING.md Minor changes (#3909) 2017-08-24 11:19:40 +02:00
app.yml Update app.yml 2015-08-15 20:26:22 +02:00
appveyor.yml Fix AppVeyor IA32 builds (#5096) 2020-12-31 19:43:02 +00:00
clang-tidy.sh More CMake cleanup 2020-07-12 22:00:07 +01:00
cloc-exclude.txt cloc: Updated list of ignored files. (#4280) 2018-08-03 18:41:03 +01:00
compile.sh Fixed windows hack in Compile.sh (#4834) 2020-08-26 10:42:51 +00:00
easyinstall.sh Re-enable darwin download from easyinstall.sh script 2020-04-09 21:41:16 +01:00
jenkinsbuild.sh More tar incompatibility changes 2020-08-20 21:09:54 +00:00
stats.cmd Marked stats.cmd as executable so it can be run on linux 2013-12-21 11:04:21 +00:00
travisbuild.sh More CMake cleanup 2020-07-12 22:00:07 +01:00

README.md

Cuberite

Build Status Circle CI Build Status AppVeyor Build Status

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.

Currently we support Release 1.8 - 1.12.2 Minecraft protocol versions.

Subscribe to the newsletter for important updates and project news.

Installation

There are several ways to obtain Cuberite.

Binaries

  • The easiest method is downloading for Windows or Linux from the website.
  • You can use the EasyInstall script for Linux and macOS, which automatically downloads the correct binary. The script is described below.

The EasyInstall script

This script will download the correct binary from the project site.

curl -sSfL https://download.cuberite.org | sh

Compiling

  • You can compile automatically for Linux, macOS and FreeBSD with the compile.sh script. The script is described below.
  • You can also compile manually. See COMPILING.md.

Compiling may provide better performance (1.5-3x as fast) and it supports more operating systems.

The compile.sh script

This script downloads the source code and compiles it. The script is smart enough to notify you of missing dependencies and instructing you on how to install them. The script doesn't work for Windows.

Using curl:

sh -c "$(curl -sSfL -o - https://compile.cuberite.org)"

Or using wget:

sh -c "$(wget -O - https://compile.cuberite.org)"

Hosted services

  • Hosted Cuberite is available via Gamocosm.

Contributing

Cuberite is licensed under the Apache License V2, and we welcome anybody to fork and submit a Pull Request back with their changes, and if you want to join as a permanent member we can add you to the team.

Cuberite is developed in C++ and Lua. To contribute code, please check out GETTING-STARTED.md and CONTRIBUTING.md for more details.

Plugins are written in Lua. You can contribute by developing plugins and submitting them to the plugin repository or the forum. Please check out our plugin introduction guide for more info.

If you are not a programmer, you can help by testing Cuberite and reporting bugs. See TESTING.md for details.

You can also help with documentation by contributing to the User's Manual.

Other Stuff

For other stuff, check out the homepage, the Users' Manual, the forums, and the Plugin API.

Support the Cuberite development team on Liberapay