1
0
Personal fork of Cuberite
Go to file
linnemannr ee34e7131a Fix FreeBSD/clang errors caused by -Werror
With FreeBSD/clang, -Werror combined with the configured warning flags yields
some fatal errors, specifically related to signed conversion, 64 to 32 bit
conversion, and tautological compares.

CONTRIBUTORS

	Add myself to the contributor list

src/Generating/FinishGen.cpp

	In cFinishGenPassiveMobs::GetRandomMob(), change the type of RandMob
	from size_t to the difference_type of the ListOfSpawnables iterator
	MobIter. Using size_t triggers a 64 bit to 32 bit conversion if the
	difference_type of the iterator class is 64 bit

	Also explicitly cast the noise expression to unsigned long so we don't
	get a signed conversion warning from the modulo against
	ListOfSpawnables.size()

src/OSSupport/StackTrace.cpp

	FreeBSD 10 and above includes a non glibc implementation of benchmark()
	for which size_t, not int, is the return type. To account for this and
	prevent a signed conversion warning, abstract the type for numItems with
	a macro btsize

src/StringUtils.h

	In StringToInteger(), correct a tautological compare warning for
	unsigned types with the template. If T is unsigned, comparing
	std::numeric_limits<T>::min() to the unsigned result is always
	false. That control can enter this branch in an evaluated template with
	an unsigned type T may also permit a signed number to be parsed and
	erroneously stripped of its signedness at runtime. To guard against this
	and avoid the warning in the case that the number parsed from the string
	is non-positive, return false and don't try to parse if T is unsigned
	and control enters the non-positive branch
2015-05-30 02:23:57 -06:00
Android Update strings.xml 2014-10-11 16:14:20 +02:00
docs docs/Generator: Fixed typo. 2014-06-09 21:18:20 +02:00
Install Added LibEvent license to the binary distribution pack. 2015-01-27 14:53:35 +01:00
lib Support building on FreeBSD 2015-05-24 20:07:31 -06:00
MCServer Fixed Info.lua documentation 2015-05-28 22:22:59 +02:00
src Fix FreeBSD/clang errors caused by -Werror 2015-05-30 02:23:57 -06:00
tests Fix clang 3.6 flags to only be used in clang 3.6 2015-05-24 15:22:55 +01:00
Tools Fix other clang 3.6 commit 2015-05-24 17:14:35 +01:00
.gitignore Fix comments 2015-05-28 12:54:04 +01:00
.gitmodules Added TCLAP 2015-05-16 10:46:51 +01:00
.travis.yml Fix #2105 - Add gcc to CI compilers 2015-05-24 17:42:30 +03:00
app.yml Upgraded ubuntu version. 2015-05-04 10:01:32 +01:00
CIbuild.sh CIBuild: Added action labels 2015-05-12 09:21:43 +02:00
cloc-exclude.txt Update cloc-exclude.txt 2013-12-21 10:01:05 +00:00
CMakeLists.txt Add build_tools and Self_test as cache options, so that CLion can detect them 2015-05-23 06:36:45 -07:00
compile.sh Removed stray "exit" from compile.sh 2015-05-28 22:39:39 +03:00
COMPILING.md Update COMPILING.md 2015-02-22 12:17:11 -04:00
CONTRIBUTING.md Update Contributing.MD 2015-05-08 19:59:14 +03:00
CONTRIBUTORS Fix FreeBSD/clang errors caused by -Werror 2015-05-30 02:23:57 -06:00
CoverityModel.cpp Update CoverityModel.cpp 2014-04-27 13:03:34 -07:00
Doxyfile DoxyFile: Updated after all the folder renaming. 2014-03-01 14:24:20 +01:00
easyinstall.sh Fix build URLs, now .tar.gz 2015-05-08 17:20:59 +01:00
GETTING-STARTED.md Update GETTING-STARTED.md 2015-04-07 10:39:22 +02:00
LICENSE Updated license year. 2015-03-05 21:05:05 +00:00
MakeLuaAPI.cmd Updated the nightbuild script. 2014-04-20 14:14:16 +02:00
README.md Easy compile script 2015-05-24 13:48:15 +03:00
SetFlags.cmake Merge branch 'master' into PreventNewWarnings 2015-05-28 11:05:41 +01:00
stats.cmd Marked stats.cmd as executable so it can be run on linux 2013-12-21 11:04:21 +00:00
uploadCoverage.sh excluding tests excludes everything 2014-05-17 13:20:28 +01:00

MCServer Build Status Coverity Scan Build Status weekly tips

MCServer 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. MCServer is compatible with the vanilla Minecraft client.

MCServer can run on Windows, *nix and Android operating systems. This includes Android phones and tablets as well as Raspberry Pis.

We currently support Release 1.7 and 1.8 (not beta) Minecraft protocol versions.

Subscribe to the newsletter for important updates and project news.

Installation

Hosted MCServer is available DIY on DigitalOcean: Install on DigitalOcean and Gamososm also offers MCServer support.

For Linux there is an easy installation method, just run this in your terminal:

curl -s https://raw.githubusercontent.com/mc-server/MCServer/master/easyinstall.sh | sh

For Windows, you just need to download a file and extract it:

For other operating systems you need to download and compile yourself. This can be done either manually, or with this automatic script:

bash -c "$(wget -O - https://raw.githubusercontent.com/mc-server/MCServer/master/compile.sh)"

There is also an archive of binary builds on the buildserver: http://builds.cuberite.org

Compiling the server yourself has other benefits: you may get better performance performance (1.5-3x as fast) and it supports more operating systems. See the COMPILING.md file for more details.

Contributing

MCServer 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.

Check out the CONTRIBUTING.md file for more details.

Other Stuff

For other stuff, including plugins and discussion, check out the forums and Plugin API.

Support Us on Gratipay: Support via Gratipay

Travis CI: Build Status