summaryrefslogtreecommitdiffstats
path: root/src/Server.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Warnings improvementsTiger Wang2020-12-181-1/+1
| | | | | | | | | * Turn off global-constructors warning. These are needed to implement cRoot signal handler functionality * Add Clang flags based on version lookup instead of a compile test. The CMake config process is single threaded and slow enough already * Reduced GetStackValue verbosity + Clarify EnchantmentLevel, StayCount, AlwaysTicked, ViewDistance signedness + Give SettingsRepositoryInterface a move constructor to simplify main.cpp code - Remove do {} while (false) construction in redstone handler
* Streamline startup sequenceTiger Wang2020-09-051-6/+15
| | | | | * Clean up cRoot & main * Move some OS-specifics into OSSupport
* Enable some more clang-tidy linter checks (#4738)peterbell102020-05-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Avoid inefficient AString -> c_str() -> AString round trip * Avoid redundant string init expressions * Avoid unnecessary return, continue, etc. * Add .clang-format to help with clang-tidy fix-its * Avoid unnecessary passing by value * Avoid unnecessary local copying * Avoid copying in range-for loops * Avoid over-complicated boolean expressions * Some violations missed by my local clang-tidy * Allow unnecessary continue statements * Add brackets * Another expression missed locally * Move BindingsProcessor call into clang-tidy.sh and add space * Fix pushd not found error * Different grouping of CheckBlockInteractionRate
* Using Super.Mattes D2020-04-161-2/+6
|
* Initial resource pack support (#4622)Mat2020-04-071-0/+3
|
* Update mbedtls to 2.5.1 (#3964)peterbell102017-08-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | * Renaming changes: * macro prefix "POLARSSL" -> "MBEDTLS" * functions now prefixed with "mbedtls_" * rename PolarSSL++ -> mbedTLS++ * rename polarssl submodule * Use mbedtls' AES-CFB8 implementation. * Add cSslConfig to wrap mbedtls_ssl_config * Update cTCPLink and cBlockingSslClientSocket to use cSslConfig * Use cSslConfig in cHTTPServer * Use cSslConfig for cMojangAPI::SecureRequest * CI Fixes * Set -fomit-frame-pointer on the right target
* Implement Forge protocol handshake support (#3869)satoshinm2017-08-271-0/+19
|
* Add cUUID class (#3871)peterbell102017-08-251-1/+2
|
* Removed unused forward declarations (#3888)Lukas Pioch2017-08-031-1/+0
|
* Tentative fix for player-limit race condition (#3862)Tiger Wang2017-07-281-19/+7
| | | | | | | | | | * Attempts to fix #2257 Derived from d233e9843148313c71fbaba96ccff660e47b07b1 * Changed player count type to int * Clarified certain actions
* Remove smart pointer macrospeterbell102017-07-211-1/+1
|
* Allow enabling/disabling of block change limitmathiascode2017-05-191-0/+6
|
* Custom Disconnect Messagesweetgiorni2017-01-031-0/+3
| | | | | | Adds a m_ShutdownMessage option to the settings. When the stop command is issued, players are kicked with said message before the server shuts down.
* Tab completion across worlds (#3270)Alexander Harkness2016-07-211-0/+7
| | | Fixes #2563.
* Bulk clearing of whitespaceLogicParrot2016-02-051-40/+40
|
* Fixed race conditionsLukas Pioch2016-01-171-1/+1
|
* Initial implementation of IniFile overloadingtycho2015-05-161-2/+2
|
* Converted cServer to use the cNetwork API.Mattes D2015-01-271-56/+41
|
* Cosmetic touchups.Mattes D2014-12-111-2/+2
| | | | Removed trailing whitespace, added cast to remove warning, added file seeking in case of corrupt files.
* Fixed indent problems and added return definitions to CheckMultiLogin().Vincent2014-12-091-3/+3
| | | | | Changed from IsAllowMultiLogin() to DoesAllowMultiLogin(). Fixed CheckMultiLogin() to not run to the end without returning a value.
* Changed CheckMultiLogin() to not have main body wrapped in an if statement.Vincent2014-12-081-2/+4
| | | | | | Added in indent to cPlayerListCallBack in cCallback class inside CheckMultiLogin(). Added doxy-comment for DoWithPlayer(). Changed comments on IsPlayerInQueue() and IsAllowMultiLogin() to doxy-comments.
* Fixed compile errorsVincent2014-12-081-2/+2
|
* fixed naming of strings and changed from i to IVincent2014-11-291-2/+2
|
* issue 1253 - prevent multiple logins with same usernameVincent2014-11-291-0/+9
|
* cMojangAPI: Don't update data if server is in offline mode.Mattes D2014-10-171-1/+1
|
* Added an explicit setting for allowing BungeeCord handshake.madmaxoft2014-09-171-0/+8
|
* Exported cServer:ShouldAuthenticate to Lua API.Mattes D2014-08-201-1/+1
|
* Add "Broadcasting" settings to world.iniHowaner2014-07-271-2/+2
|
* Fixed spaces around single-line comments.madmaxoft2014-07-171-3/+3
| | | | There should be at least two spaces in front and one space after //-style comments.
* Fixed basic whitespace problems.madmaxoft2014-07-171-4/+4
| | | | Indenting by spaces and alignment by spaces, as well as trailing whitespace on non-empty lines.
* Store properties as Json::ValueTiger Wang2014-07-161-1/+8
|
* Player properties are now retrievedTiger Wang2014-07-141-2/+2
|
* Player data filenames are based on UUID.madmaxoft2014-07-111-0/+20
|
* Moved cRsaPrivateKey to PolarSSL++, rewritten using existing objects.madmaxoft2014-04-291-3/+3
|
* Declared one mutex as mutable in order to allow for const correct get accessors.jfhumann2014-04-191-2/+2
|
* Added Yggdrasil Authentication Systemdaniel09162014-04-131-1/+1
| | | | Code by Howaner. Fixes/Changes by me.
* Protocol 1.7: Forced encryption on all connections.madmaxoft2014-01-281-11/+17
| | | | This is for testing purposes only, to find bugs in the encryption. Once the encryption is deemed stable, it will be enabled only for servers with enabled Authentication.
* PolarSSL is fully used for 1.3.2 protocol encryption.madmaxoft2014-01-231-6/+8
|
* Rewritten SocketThreads for proper shutdown scenario.madmaxoft2014-01-191-4/+4
| | | | This fixes #560 and #390.
* Major refactoring of redstoneTiger Wang2014-01-101-1/+1
| | | | | | | | | | | | | | | | | | | | This commit is a refactoring of the redstone code, mainly the functions handling the removal of invalid blocks from power supplier data structures. Its aim is to improve performance and potentially reduce the memory footprint of the data structures. It works to reduce the amount of GetBlock()s triggered every tick. Before, a GetBlock() was requested for every single item in the data lists, as well as for every single redstone block in a chunk. Following these changes, the AddBlock() event is utilised more effectively to only update the lists when needed (a block is changed), as well as to insert the block type (and update it when needed) alongside the coordinates into the main redstone simulator chunkdata list. In short, a single GetBlock() is now cached, with this cache being updated when the simulator is awoken due to a block change. At least, I *hope* that this is what it does :P
* Fixed faviconsTiger Wang2014-01-071-1/+2
|
* Avoid making copies of favicon stringBill Derouin2014-01-071-1/+1
|
* A few touch upsBill Derouin2014-01-071-1/+1
|
* Implement favicon for 1.7.2Bill Derouin2014-01-071-0/+3
| | | | | Favicon data is a png encoded in base64 which is stored in the server and sent in the server response packet
* Added warning(push) and warning(pop) around all of the inclusions of cryptopp/*.hDiusrex2014-01-051-1/+16
| | | | | | I also added a warning(push)/(pop) around crpytlib.cpp because it would go crazy with warnings. So now, the only warning from cryptopp that is not blocked is 'unreferenced local function has been removed', which also occurs at a single function.
* Root is now warnings cleanTycho Bickerstaff2013-12-211-0/+2
|
* Fixed loads more of them.Alexander Harkness2013-11-261-2/+2
|
* Attempt to fix compilationTiger Wang2013-11-241-2/+2
|
* Moved source to srcAlexander Harkness2013-11-241-0/+195